https://github.com/karan/swift-algorithms
Implementation of various algorithms and data structures in Swift.
https://github.com/karan/swift-algorithms
Last synced: 6 months ago
JSON representation
Implementation of various algorithms and data structures in Swift.
- Host: GitHub
- URL: https://github.com/karan/swift-algorithms
- Owner: karan
- License: mit
- Created: 2014-06-05T14:25:05.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T01:10:18.000Z (about 10 years ago)
- Last Synced: 2025-07-26T20:21:43.081Z (6 months ago)
- Language: Swift
- Size: 202 KB
- Stars: 110
- Watchers: 10
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Swift-Algorithms
================
Implementation of various algorithms and data structures in Swift.
Feel free to add more implementations!
Each implementation is done in Xcode playground. To view code, either:
1. Clone the repo and import in Xcode, *or*
2. View the .swift file in each .playground folder (on Github)
## Algorithms
### Sorting
[Insertion Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/InsertionSort.playground)
[Selection Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/SelectionSort.playground)
[Bubble Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/BubbleSort.playground)
[Quick Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/QuickSort.playground)
[Merge Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/MergeSort.playground)
## Data Structures
[Stack](https://github.com/karan/Swift-Algorithms/tree/master/data_structures/Stack.playground)
[Queue](https://github.com/karan/Swift-Algorithms/tree/master/data_structures/Queue.playground)
## Prime Numbers
[Sieve of Eratosthenes](https://github.com/karan/Swift-Algorithms/tree/master/other/SieveOfEratosthenes.playground)