Field 1
Data Structures
How we keep data in memory, how we reach it, and why we pick one structure over another. Each part opens with an introduction; after that every operation is a lesson of its own.
9parts60lessons27live0done on this device
Your progress is kept on this device only.
Before you startWhat is a data structure?6 minutes · a map of the whole curriculum01IntroductionConcepts, memory and complexity
02ArraysContiguous memory and index access
- 2.1What is an array?Coming soon
- 2.2Traversing an arrayComing soon
- 2.3Inserting into an arrayComing soon
- 2.4Deleting from an arrayComing soon
- 2.5Dynamic arraysComing soon
- 2.6Two-dimensional arraysComing soon
03Linked ListsLists built from nodes and pointers
Part page
- 3.1.1What is a singly linked list?5 min
- 3.1.2Creating a singly linked list6 min
- 3.1.3Traversal5 min
- 3.1.4Inserting at the end5 min
- 3.1.5Inserting at a position7 min
- 3.1.6Inserting at the head4 min
- 3.1.7Deleting from the end6 min
- 3.1.8Deleting from the head4 min
- 3.1.9Deleting from the middle6 min
- 3.1.10Searching for a value4 min
- 3.1.11Reversing a linked list (iterative)7 min
- 3.1.12Reversing a linked list (recursive)8 min
04StackLast in, first out
- 4.1What is a stack?Coming soon
- 4.2A stack with an arrayComing soon
- 4.3A stack with a linked listComing soon
- 4.4Balanced parenthesesComing soon
05QueueFirst in, first out
- 5.1What is a queue?Coming soon
- 5.2A queue with an arrayComing soon
- 5.3Circular queueComing soon
- 5.4A queue with a linked listComing soon
06TreesHierarchical data
- 6.1What is a tree? Basic termsComing soon
- 6.2Storing a tree in memoryComing soon
- 6.3Traversing a treeComing soon
07Binary TreesAt most two children per node
- 7.1What is a binary tree?Coming soon
- 7.2Preorder traversalComing soon
- 7.3Inorder traversalComing soon
- 7.4Postorder traversalComing soon
- 7.5Level-order traversalComing soon
- 7.6Binary search treeComing soon
08GraphsVertices and edges
- 8.1What is a graph?Coming soon
- 8.2Adjacency matrixComing soon
- 8.3Adjacency listComing soon
- 8.4Breadth-first search (BFS)Coming soon
- 8.5Depth-first search (DFS)Coming soon
09HashingFrom key to address
- 9.1What is hashing?Coming soon
- 9.2Hash functionsComing soon
- 9.3CollisionsComing soon
- 9.4Separate chainingComing soon
- 9.5Open addressingComing soon
No lesson matches this search.