Reading history
Data Structures & Algorithms

Data Structures & Algorithms Tutorial

Complexity analysis, arrays, searching, hashing, linked lists, stacks and queues, explained step by step with C code.

Start learning 125 lessons

Lessons

  1. Learn DSA in C: Data Structures and Algorithms Roadmap
  2. Logic Building Problems in C: 13 Classic Exercises
  3. Analysis of Algorithms: Measuring Time and Space
  4. Order of Growth: How Algorithms Scale
  5. Asymptotic Analysis: Comparing Algorithms by Growth
  6. Worst, Average and Best Case Analysis With C Examples
  7. How to Analyse Loops: Time Complexity of Loops
  8. Big O Notation Explained with C Examples
  9. Big Theta (Θ) Notation: Tight Bounds Explained
  10. Big Omega (Ω) Notation: Lower Bounds Explained
  11. Time Complexity With Simple Examples in C
  12. Space Complexity: Auxiliary Space and Recursion in C
  13. Time Complexity Practice Questions With Answers
  14. Time Complexity of Recursive Functions
  15. Amortized Analysis: Why Growing Arrays Are Still O(1)
  16. Insertion in a Red-Black Tree: Cases and Rotations
  17. P, NP, NP-Complete and NP-Hard Explained Simply
  18. Array Data Structure: How Arrays Work in Memory
  19. Arrays: Applications, Advantages and Disadvantages
  20. Print Alternate Elements of an Array in C
  21. Leaders in an Array: O(n) Right-to-Left Solution
  22. Remove Duplicates From a Sorted Array in C
  23. Generate All Subarrays of an Array in C
  24. Reverse an Array in C: Two-Pointer, Copy and Recursion
  25. Rotate an Array to the Right (Clockwise) in C
  26. Rotate an Array to the Left by d in C
  27. Count Rotations of a Sorted Array in C
  28. Maximum Sum of i x arr[i] Among All Rotations in C
  29. Find the Minimum in a Sorted Rotated Array in C
  30. Multiple Left Rotations of an Array in C
  31. Move All Zeros to the End of an Array in C
  32. Minimum Increments by K to Make All Elements Equal in C
  33. Minimum Cost to Reduce an Array to Size 1 in C
  34. Duplicates Within K Distance in an Array (C)
  35. Rearrange Array: Even Positions Greater Than Odd
  36. Sum of All Subarrays in C: O(n) Contribution Method
  37. Stock Buy and Sell With Multiple Transactions in C
  38. Find the Unique Number in an Array With XOR (C)
  39. Find the Missing Number in an Array in C
  40. Find the Missing and Repeating Number in C
  41. Sorted Subsequence of Size 3 in O(n) (C)
  42. Kadane’s Algorithm: Maximum Subarray Sum in C
  43. Equilibrium Index of an Array in C (O(n))
  44. Split an Array Into Three Equal-Sum Parts in C
  45. Binary Search in C: Iterative and Recursive
  46. 7 Binary Search Applications in C with Code
  47. Two Pointers Technique in C With Examples
  48. Prefix Sum Array in C: Fast Range Sums
  49. Sliding Window Technique in C With Examples
  50. Sliding Window Interview Questions in C: 20 Q&A
  51. Hashing in Data Structures: Hash Functions and Collisions
  52. Linear Probing in Hash Tables (C Implementation)
  53. Quadratic Probing in Hashing (C Implementation)
  54. Applications of Hashing in C: Real Uses with Code
  55. Separate Chaining in Hashing: Linked-List Buckets in C
  56. Open Addressing: Linear, Quadratic and Double Hashing
  57. Check if One Array Is a Subset of Another in C
  58. Check if Two Arrays Are Disjoint in C
  59. Check if Two Arrays Are Equal in C (Any Order)
  60. FizzBuzz in C: 3 Ways to Solve It
  61. Maximum Distance Between Two Occurrences in C
  62. Intersection of Two Arrays in C
  63. Union of Two Arrays in C: Naive vs Hash Set
  64. Most Frequent Element in an Array in C
  65. Two Sum in C: Brute Force, Two Pointers and Hashing
  66. Count Pairs With a Given Sum in C
  67. Count Pairs With Difference K in C
  68. Find the Only Repeating Element (1 to n-1) in C
  69. Find Missing Elements in a Range in C
  70. Minimum Subsets With Distinct Elements in C
  71. Remove Fewest Elements So Two Arrays Share None (C)
  72. Maximum Points on the Same Line in C
  73. Linked List in C: Insert, Delete and Reverse
  74. Stack Data Structure in C: Push, Pop and Uses
  75. Queue Data Structure in C: Circular Queue
  76. Bubble, Selection and Insertion Sort in C
  77. Merge Sort in C: Divide and Conquer Explained
  78. Quick Sort in C: Partition, Pivot Choice and Complexity
  79. Binary Tree in C: Traversals, Height and Level Order
  80. Binary Search Tree (BST) in C: Insert, Search, Delete
  81. Heap Data Structure in C: Priority Queue and Heap Sort
  82. Graphs in C: Adjacency Matrix, List, BFS and DFS
  83. Dijkstra’s Shortest Path Algorithm in C
  84. Dynamic Programming in C: Memoization, Tabulation, Knapsack
  85. Backtracking in C: Subsets and N-Queens
  86. Doubly Linked List in C: Insert, Delete and Traverse
  87. Circular Queue and Deque in C (with Sliding Window Maximum)
  88. AVL Tree in C: Rotations and Balanced Insertion
  89. Trie Data Structure in C: Insert, Search and Autocomplete
  90. Union-Find (Disjoint Set Union) in C
  91. Topological Sort in C: Kahn’s Algorithm and DFS
  92. Minimum Spanning Tree in C: Kruskal’s and Prim’s Algorithms
  93. Greedy Algorithms in C: Activity Selection and Coin Change
  94. Counting Sort and Radix Sort in C
  95. KMP Algorithm in C: Fast String Pattern Matching
  96. Bellman-Ford Algorithm in C: Shortest Paths with Negative Weights
  97. Floyd-Warshall Algorithm in C: All-Pairs Shortest Paths
  98. Longest Common Subsequence and Edit Distance in C
  99. Longest Increasing Subsequence (LIS) in C: O(n²) and O(n log n)
  100. Segment Tree in C: Range Sum and Range Minimum Queries
  101. Fenwick Tree (Binary Indexed Tree) in C
  102. Monotonic Stack in C: Next Greater Element and Histogram
  103. Bit Manipulation in C: Operators, Masks and Tricks
  104. Cycle Detection and Bipartite Graph Check in C
  105. Strongly Connected Components in C: Kosaraju and Tarjan
  106. Two Pointer Technique in C: Pair Sum, Duplicates and More
  107. Binary Search on the Answer in C
  108. Rabin-Karp and Z Algorithm in C: Fast String Matching
  109. Matrix Chain Multiplication in C: Interval DP
  110. Coin Change and Unbounded Knapsack in C
  111. Sparse Table in C: O(1) Range Minimum Queries
  112. Lowest Common Ancestor in C: Binary Lifting
  113. Articulation Points and Bridges in C
  114. LRU Cache in C: Hash Table plus Doubly Linked List
  115. Maximum Flow in C: Ford-Fulkerson and Edmonds-Karp
  116. Stack Data Structure in C
  117. Skip List in C
  118. Manacher’s Algorithm in C: Longest Palindromic Substring
  119. Bitmask DP and the Travelling Salesman Problem in C
  120. A* Search Algorithm in C
  121. Bloom Filter in C
  122. Shell Sort and Bucket Sort in C
  123. Meet in the Middle in C
  124. Interval Problems in C: Merge Intervals, Activity Selection and Sweep Line
  125. Convex Hull in C