Tutorial lessons
DSA in Python
Learn DSA in Python with free step-by-step tutorials on arrays, linked lists, stacks, queues, trees, graphs, sorting, searching, and dynamic programming.
Lessons
Tutorial lessons
DSA Tutorial Using Python – Complete Roadmap
Learn Data Structures and Algorithms using Python with this complete DSA tutorial roadmap. Covers arrays, stacks, queues, trees, graphs, sorting, searching, dynamic programming, greedy algorithms, and
What are Data Structures?
Learn what data structures are, explore common types and algorithms, and understand why DSA matters for efficient programming, with a Python binary search example.
Setting Up the Development Environment for Python
Set up your Python development environment for DSA with installation steps, VS Code, PyCharm, Jupyter Notebook, NumPy and introductory Python examples.
Arrays and Lists in Python
Learn arrays and lists in Python with examples covering insertion, deletion, traversal, searching, reversing, 2D arrays, matrix addition and transposition.
Stacks in Python
Learn stacks in Python using lists, with push, pop, peek and empty checks, plus examples of balanced parentheses, undo mechanisms and backtracking.
Queues in Python
Learn queues in Python with FIFO operations, collections.deque, priority queues using heapq, circular queue concepts and applications in scheduling and BFS.
Linked Lists in Python
Learn linked lists in Python, including singly, doubly and circular lists, with code for insertion, deletion, traversal and searching, plus time complexity.
Trees in Python
Learn trees in Python with binary tree implementations, traversal methods, BST insertion, searching and deletion, plus an introduction to AVL balancing.
Heaps in Python
Learn heaps in Python using heapq, with examples of min-heaps, max-heaps, insertion, deletion, heapify, priority queues, and finding the top K elements.
Graphs in Python
Learn graphs in Python with adjacency lists and matrices, BFS and DFS traversals, plus Dijkstra and Bellman-Ford shortest path algorithms with code examples.
Hashing (Hash Map) in Python
Learn hashing and hash maps in Python with dictionary operations, collision handling, frequency counting, caching, and practical examples using Counter.
Sorting Algorithms in Python
Learn sorting algorithms in Python with code examples for bubble, selection, insertion, merge, quick, and heap sort. Compare time complexity and stability.
Searching Algorithms in Python
Learn searching algorithms in Python with linear search, binary search, first and last occurrence, BST search, BFS, and DFS. Includes code and complexity.
Dynamic Programming in Python
Learn dynamic programming in Python with memoization, tabulation, and code examples for Fibonacci, 0/1 Knapsack, Longest Common Subsequence, and Coin Change.
Greedy Algorithms in Python
Learn greedy algorithms in Python with code examples for activity selection, fractional knapsack, Huffman coding, and Prim’s and Kruskal’s MST algorithms.
Recursion and Backtracking in Python
Learn recursion and backtracking in Python with base cases, call stacks, recursive binary search, and code examples for N-Queens, Sudoku, and maze solving.
Bit Manipulation in Python
Learn bit manipulation in Python with bitwise operators, bit masks, set bit counting, XOR tricks, power-of-two checks, and subset generation examples.
Divide and Conquer in Python
Learn divide and conquer in Python with merge sort, quick sort, binary search, complexity analysis, and an introduction to Strassen’s matrix multiplication.
Advanced Graph Algorithms in Python
Learn advanced graph algorithms in Python with code for topological sorting, Kosaraju’s SCC algorithm, Floyd–Warshall shortest paths, and A* grid search.
Problem-Solving Practice (LeetCode, HackerRank, Codeforces)
Build DSA problem-solving skills with LeetCode, HackerRank, and Codeforces. Follow a topic-wise roadmap, practice questions, and daily coding study plan.