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
- Learn DSA in C: Data Structures and Algorithms Roadmap
- Logic Building Problems in C: 13 Classic Exercises
- Analysis of Algorithms: Measuring Time and Space
- Order of Growth: How Algorithms Scale
- Asymptotic Analysis: Comparing Algorithms by Growth
- Worst, Average and Best Case Analysis With C Examples
- How to Analyse Loops: Time Complexity of Loops
- Big O Notation Explained with C Examples
- Big Theta (Θ) Notation: Tight Bounds Explained
- Big Omega (Ω) Notation: Lower Bounds Explained
- Time Complexity With Simple Examples in C
- Space Complexity: Auxiliary Space and Recursion in C
- Time Complexity Practice Questions With Answers
- Time Complexity of Recursive Functions
- Amortized Analysis: Why Growing Arrays Are Still O(1)
- Insertion in a Red-Black Tree: Cases and Rotations
- P, NP, NP-Complete and NP-Hard Explained Simply
- Array Data Structure: How Arrays Work in Memory
- Arrays: Applications, Advantages and Disadvantages
- Print Alternate Elements of an Array in C
- Leaders in an Array: O(n) Right-to-Left Solution
- Remove Duplicates From a Sorted Array in C
- Generate All Subarrays of an Array in C
- Reverse an Array in C: Two-Pointer, Copy and Recursion
- Rotate an Array to the Right (Clockwise) in C
- Rotate an Array to the Left by d in C
- Count Rotations of a Sorted Array in C
- Maximum Sum of i x arr[i] Among All Rotations in C
- Find the Minimum in a Sorted Rotated Array in C
- Multiple Left Rotations of an Array in C
- Move All Zeros to the End of an Array in C
- Minimum Increments by K to Make All Elements Equal in C
- Minimum Cost to Reduce an Array to Size 1 in C
- Duplicates Within K Distance in an Array (C)
- Rearrange Array: Even Positions Greater Than Odd
- Sum of All Subarrays in C: O(n) Contribution Method
- Stock Buy and Sell With Multiple Transactions in C
- Find the Unique Number in an Array With XOR (C)
- Find the Missing Number in an Array in C
- Find the Missing and Repeating Number in C
- Sorted Subsequence of Size 3 in O(n) (C)
- Kadane’s Algorithm: Maximum Subarray Sum in C
- Equilibrium Index of an Array in C (O(n))
- Split an Array Into Three Equal-Sum Parts in C
- Binary Search in C: Iterative and Recursive
- 7 Binary Search Applications in C with Code
- Two Pointers Technique in C With Examples
- Prefix Sum Array in C: Fast Range Sums
- Sliding Window Technique in C With Examples
- Sliding Window Interview Questions in C: 20 Q&A
- Hashing in Data Structures: Hash Functions and Collisions
- Linear Probing in Hash Tables (C Implementation)
- Quadratic Probing in Hashing (C Implementation)
- Applications of Hashing in C: Real Uses with Code
- Separate Chaining in Hashing: Linked-List Buckets in C
- Open Addressing: Linear, Quadratic and Double Hashing
- Check if One Array Is a Subset of Another in C
- Check if Two Arrays Are Disjoint in C
- Check if Two Arrays Are Equal in C (Any Order)
- FizzBuzz in C: 3 Ways to Solve It
- Maximum Distance Between Two Occurrences in C
- Intersection of Two Arrays in C
- Union of Two Arrays in C: Naive vs Hash Set
- Most Frequent Element in an Array in C
- Two Sum in C: Brute Force, Two Pointers and Hashing
- Count Pairs With a Given Sum in C
- Count Pairs With Difference K in C
- Find the Only Repeating Element (1 to n-1) in C
- Find Missing Elements in a Range in C
- Minimum Subsets With Distinct Elements in C
- Remove Fewest Elements So Two Arrays Share None (C)
- Maximum Points on the Same Line in C
- Linked List in C: Insert, Delete and Reverse
- Stack Data Structure in C: Push, Pop and Uses
- Queue Data Structure in C: Circular Queue
- Bubble, Selection and Insertion Sort in C
- Merge Sort in C: Divide and Conquer Explained
- Quick Sort in C: Partition, Pivot Choice and Complexity
- Binary Tree in C: Traversals, Height and Level Order
- Binary Search Tree (BST) in C: Insert, Search, Delete
- Heap Data Structure in C: Priority Queue and Heap Sort
- Graphs in C: Adjacency Matrix, List, BFS and DFS
- Dijkstra’s Shortest Path Algorithm in C
- Dynamic Programming in C: Memoization, Tabulation, Knapsack
- Backtracking in C: Subsets and N-Queens
- Doubly Linked List in C: Insert, Delete and Traverse
- Circular Queue and Deque in C (with Sliding Window Maximum)
- AVL Tree in C: Rotations and Balanced Insertion
- Trie Data Structure in C: Insert, Search and Autocomplete
- Union-Find (Disjoint Set Union) in C
- Topological Sort in C: Kahn’s Algorithm and DFS
- Minimum Spanning Tree in C: Kruskal’s and Prim’s Algorithms
- Greedy Algorithms in C: Activity Selection and Coin Change
- Counting Sort and Radix Sort in C
- KMP Algorithm in C: Fast String Pattern Matching
- Bellman-Ford Algorithm in C: Shortest Paths with Negative Weights
- Floyd-Warshall Algorithm in C: All-Pairs Shortest Paths
- Longest Common Subsequence and Edit Distance in C
- Longest Increasing Subsequence (LIS) in C: O(n²) and O(n log n)
- Segment Tree in C: Range Sum and Range Minimum Queries
- Fenwick Tree (Binary Indexed Tree) in C
- Monotonic Stack in C: Next Greater Element and Histogram
- Bit Manipulation in C: Operators, Masks and Tricks
- Cycle Detection and Bipartite Graph Check in C
- Strongly Connected Components in C: Kosaraju and Tarjan
- Two Pointer Technique in C: Pair Sum, Duplicates and More
- Binary Search on the Answer in C
- Rabin-Karp and Z Algorithm in C: Fast String Matching
- Matrix Chain Multiplication in C: Interval DP
- Coin Change and Unbounded Knapsack in C
- Sparse Table in C: O(1) Range Minimum Queries
- Lowest Common Ancestor in C: Binary Lifting
- Articulation Points and Bridges in C
- LRU Cache in C: Hash Table plus Doubly Linked List
- Maximum Flow in C: Ford-Fulkerson and Edmonds-Karp
- Stack Data Structure in C
- Skip List in C
- Manacher’s Algorithm in C: Longest Palindromic Substring
- Bitmask DP and the Travelling Salesman Problem in C
- A* Search Algorithm in C
- Bloom Filter in C
- Shell Sort and Bucket Sort in C
- Meet in the Middle in C
- Interval Problems in C: Merge Intervals, Activity Selection and Sweep Line
- Convex Hull in C
