Giter Site home page Giter Site logo

witekbobrowski / hackerrank Goto Github PK

View Code? Open in Web Editor NEW
44.0 3.0 12.0 199 KB

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Solutions to hackerrank.com challenges in Swift

Swift 100.00%
hackerrank swift algorithms 30daysofcode cracking-the-coding-interview programming-challenges solvingproblems hacktoberfest

hackerrank's Introduction

Language Challenges

This repository contains my solutions to challenges from hackerrank.com. Solutions are written entirely in Swift. This markdown file tracks my progress as I complete each challenge.

Contents

Core CS

  • Warmup
  • Implementation
  • Strings
  • Sorting
  • Search
  • Graph Theory
  • Greedy
  • Dynamic Programming
  • Constructive Algorithms
  • Bit Manipulation
  • Recursion
  • Game Theory
  • NP Complete
  • Arrays
  • Trees
  • Balanced Trees
  • Stacks
  • Queues
  • Heap
  • Disjoint Set
  • Multiple Choice
  • Trie
  • Advanced

Tutorials

  • 30 Challenges completed
  • Data Structures
  • Algorithms
  • Techniques/Concepts

Usage

There are two ways you can test the solutions found in here.

1. Terminal

The first one is the most obvious one, simply compile and run from terminal using single command

$ xcrun swift challenge-solution.swift    

where 'challenge-solution.swift' is any swift source file from this repository. This will be the best way to quickly test the solution with console input.

2. Xcode Playground

The second option is to copy code from the source file and paste it into the Xcode Playground. Nearly all of the solutions that you can find here need some kind of input, so don't be surprised when Playground will give you an error. You will need to remove any call to 'readLine()' and hardcode any desired input.

Note

  • If you have encountered any problems with solutions feel free to open new issueโ—๏ธ
  • If this helped you in any way consider leaving a star โญ๏ธ

hackerrank's People

Contributors

ankit92ios avatar witekbobrowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.