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.
-
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
-
30 Challenges completed
-
Data Structures
-
Algorithms
-
Techniques/Concepts
There are two ways you can test the solutions found in here.
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.
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.
- 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 βοΈ