https://github.com/witekbobrowski/hackerrank
👨🏻💻 Solutions to hackerrank.com challenges in Swift
https://github.com/witekbobrowski/hackerrank
30daysofcode algorithms cracking-the-coding-interview hackerrank hacktoberfest programming-challenges solvingproblems swift
Last synced: about 2 months ago
JSON representation
👨🏻💻 Solutions to hackerrank.com challenges in Swift
- Host: GitHub
- URL: https://github.com/witekbobrowski/hackerrank
- Owner: witekbobrowski
- Created: 2017-05-04T07:32:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T09:12:30.000Z (about 5 years ago)
- Last Synced: 2025-10-10T21:15:53.416Z (3 months ago)
- Topics: 30daysofcode, algorithms, cracking-the-coding-interview, hackerrank, hacktoberfest, programming-challenges, solvingproblems, swift
- Language: Swift
- Homepage:
- Size: 194 KB
- Stars: 50
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README


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
##### [Algorithms](Algorithms/)
- [x] `Warmup`
- [ ] `Implementation`
- [ ] `Strings`
- [ ] `Sorting`
- [ ] `Search`
- [ ] `Graph Theory`
- [ ] `Greedy`
- [ ] `Dynamic Programming`
- [ ] `Constructive Algorithms`
- [ ] `Bit Manipulation`
- [ ] `Recursion`
- [ ] `Game Theory`
- [ ] `NP Complete`
##### [Data Structures](Data%Structures/)
- [ ] `Arrays`
- [ ] `Trees`
- [ ] `Balanced Trees`
- [ ] `Stacks`
- [ ] `Queues`
- [ ] `Heap`
- [ ] `Disjoint Set`
- [ ] `Multiple Choice`
- [ ] `Trie`
- [ ] `Advanced`
### Tutorials
##### [30 Days of Code](30%Days%of%Code/)
- [x] `30 Challenges completed`
##### [Cracking the Coding Interview](Cracking%the%Coding%Interview/)
- [x] `Data Structures`
- [x] `Algorithms`
- [x] `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](https://github.com/witekbobrowski/HackerRank/issues/new)❗️
- If this helped you in any way consider leaving a star ⭐️