An open API service indexing awesome lists of open source software.

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.

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)