From your first array to interview patterns
See every step.Learn DSA by tracing it.
Free lessons for complete beginners: plain words, a small example traced by hand, and a demo you drive yourself, one step at a time.
Start with Arrays and Strings Browse all lessons
- 16 lessons, basics to patterns
- A demo you drive in every lesson
- English and Bangla, free with an account
Drag the blocks into order, shortest to tallest. 13 pairs are still out of order.
By the numbers
Small enough to finish.
Every number here is counted from the lessons themselves.
- Lessons
- 16From arrays to interview patterns.
- Demos you drive
- 16Step, play, or type your own input.
- Quiz questions
- 56Predict first, then see why.
- Minutes in all
- 283Short lessons, one idea each.
What you get
Learn by doing
See all simulatorsSimulators you drive yourself, with missions that each teach one idea.
- Arrays and StringsInsert, delete and readChange the array and count how many values move.
- Linked ListsFollow the pointersInsert at the head and at the tail, then search. Watch how far each operation walks.
- Stacks and QueuesLast in or first in?Push and enqueue the same values, then remove one from each side.
- Hash TablesHash a key into a bucketType a key to see the hash arithmetic and the bucket it lands in.
- Binary Search TreesBuild and search a treeInsert values and search for them. Then try sorted inserts to see the tree degrade.
- Heaps and Priority QueuesPush, pop and watch the siftOne min-heap, shown as a tree and as an array. Every push and pop is a short walk along one path.
Try one now
Test your knowledge
Short quizzes for every lesson. Wrong answers explain what they get wrong.
See all quizzesAn array holds 1,000 values. How many of them does the computer look at to read the one at index 742?
The path
Three parts, one path
Start with the shapes data takes, then the steps that act on it, then the patterns interviews reuse.
Everything, in order
Course map
0 of 16 lessons doneData Structures
- Arrays and StringsCore array idea, memory layout, strings, and language differences.
- Linked ListsNodes and pointers: cheap inserts at the front, slow lookups.
- Stacks and QueuesLast in first out versus first in first out, and where each shows up.
- Hash TablesKeys, hash functions, buckets, collisions and load factor.
- Binary Search TreesSorted data in a tree shape, and why height decides the cost.
- Heaps and Priority QueuesA tree packed into an array that always knows its smallest value.
- Tries (Prefix Trees)Shared prefixes, the end-of-word mark, autocomplete, and what it costs in memory.
Algorithms
- Big OConstant, linear, and quadratic growth without formal noise.
- Binary SearchHalve a sorted range each step until the value is found.
- SortingBubble, selection, insertion and merge sort, step by step.
- Graph TraversalBreadth-first and depth-first search: a queue versus a stack.
- Dynamic ProgrammingAnswer each repeated sub-question once: memoization, tabulation and a four-step recipe.
Interview Patterns
- Two PointersMove two positions toward each other to skip pairs that cannot work.
- Sliding WindowUpdate a running answer as values enter and leave a stretch.
- Fast and Slow PointersTwo speeds on one list: find a loop or the middle in O(1) memory.
- Prefix SumsBuild running totals once, then answer any range sum with one subtraction.
Go deeper
Hand-picked outside resources for this topic, in English and Bangla.
Learn it
- DSA TutorialsShort, beginner-friendly pages with diagrams and code in C, C++, Java and Python.
- AlgorithmsA free university textbook known for clear writing on recursion and graphs.
- Algorithms, 4th Edition (book site)The free companion site: condensed chapters, Java code and exercises.
- Open Data StructuresA free open textbook with Java, C++ and Python editions.
- 6.006 Introduction to AlgorithmsRigorous lectures for the mathematical foundations.
- 6.006 Introduction to Algorithms (Spring 2020)The newer run of 6.006: lecture videos, notes, problem sets and exams.
- AlgorithmsShort articles and in-browser exercises on searching, sorting, recursion and BFS.
- Algorithms, Part IFree to audit; clean Java implementations and real analysis.
- CS 61B Data Structures (Spring 2024)A full Berkeley course site: lecture videos, slides, labs and projects in Java.
- JavaScript Algorithms and Data StructuresCode in the browser, lesson by lesson, with a free certificate at the end.
- DSA TutorialA huge encyclopedia of topics and problems; use it to look things up, not to start.
- AlgorithmsWhiteboard lectures that make recurrences, sorting and dynamic programming click.
- Algorithms and Data Structures: Full Course for BeginnersA gentle five-hour start: Big O, binary search, linked lists and merge sort.
- Data StructuresMemory, pointers and the low-level mechanics, in C and C++.
- Data Structures Easy to AdvancedAn 8-hour course by a former Google engineer with clean animations.
- Data Structures PlaylistShort animated videos per structure, each followed by source code.
- Data Structures and AlgorithmsFriendly visual intros to Big O, recursion and trees.
- Learn Data Structures and Algorithms VisuallyA crash course that teaches each idea through animation before any code.
- Algorithm VisualizerCode on one side, animation on the other; edit the code and rerun.
- Data Structure VisualizationsSimple step-by-step animations for almost every structure and algorithm.
- Python TutorPaste your own code and step through it line by line, watching indices and pointers move.
- VisuAlgoAnimate sorting, trees, graphs and more with your own input.
- Computer Programming Part 3 (Tamim Shahriar Subeen) and Graph Algorithm (Shafaet Ashraf)Two standard printed Bangla textbooks: basic DSA, and graph theory.
- DSA Full CourseFrom time complexity and arrays to dynamic programming and graphs.
- DSA Through StoriesThe intuition behind data structures, told as everyday stories.
- Data Structures & Algorithms Full CourseA 13-hour playlist for CSE students, exam topics in simple Bangla.
- Data Structures and Algorithms in BanglaShort, calm lessons from complexity and sorting to BSTs and hash tables.
Interview prep
- Grind 75A problem list you can reorder by the weeks and hours you actually have.
- LeetCodeThe standard place to practise interview problems by topic and difficulty.
- LeetCode 75 Study Plan75 free problems grouped by pattern, a good first pass before interviews.
- NeetCode Roadmap (NeetCode 150)150 essential problems grouped by pattern, each with a free video walkthrough.
- Pramp peer mock interviewsFree, timed mock interviews with another learner.
- Striver's A2Z DSA SheetA step-by-step roadmap pairing videos with curated problems.
- System Design PrimerScalability, caching and distributed systems for senior interview rounds.
- Tech Interview HandbookStudy plans (Blind 75), topic cheatsheets and behavioral interview guides.
- Bangla Coding Interview PreparationBangla video tutorials for classic interview problems, grouped by topic.
- Coding Interview CourseThe full playlist: one interview problem per video, explained then coded.
Competitive programming
- Competitive Programmer's HandbookA free, concise textbook written for contest problem-solving.
- Competitive Programmer's Handbook (author's copy)The free PDF from the author's own site; chapters 2, 3 and 9 cover complexity, sorting and range sums.
- USACO GuideBronze to Platinum: explanations paired with problems from Codeforces and CSES.
- CSES Problem Set400 classic problems, the usual benchmark for core techniques.
- Kattis Problem ArchiveThousands of contest problems with difficulty ratings, including ICPC sets.
- CP-AlgorithmsThe standard reference for contest algorithms: segment trees, flows, number theory.
- Shafaet's PlanetThe classic Bangla blog for graphs, dynamic programming and number theory.
- AlgoBanglaA free, ad-free bilingual (Bangla and English) reference modelled on CP-Algorithms.
- Shafaet's Planet: all algorithm articlesThe index page listing every article on the blog by topic.
- Competitive Programming Contest SeriesContest mindset: reading a problem and attacking the unfamiliar under time pressure.
- Competitive Programming FoundationsFoundational contest topics, STL usage and problem-solving in Bangla.
Your first lesson takes about 12 minutes.
Read it, trace it, then drive the demo yourself. A free account keeps your place.
Start with Arrays and Strings