Brief examples of the implementation of some of the Data Structures and Algorithms in swift.
Using Xcode's playgrounds, I have provided implementations of some of the most useful Data Structures and Algorithms. In addition, to some of the topics that I found useful while working with Swift.
- Generics
- Closures
- Singletons
-
Intro
- Complexity
- Big O notation
-
Linked List
- Push
- Pop
- Append
- Insert
- Remove Last
- Remove
-
Stack
- Push
- Pop
-
Queues
- Peek
- enQueue
- deQueue
-
Recursion
- Factorial
- Power
- Fibonacci
-
Tree
- Depth First Traversal
- Level Order Traversal
- Search
-
Binary Trees
- In Order Traversal
- Post Order Traversal
- Pre Order Traversal
-
Binary Search Tree
- Insert
- Contains
- Remove
-
Binary Search
- Implementation
-
Bubble Sorting
- Implementation
-
Selection Sort
- Implementation
-
Insertion Sort
- Implementation
-
Graphs
- Implementation using Adjacency List