powered by v43.aiBelajar anatomi seperti seorang seniman
Indonesia
Step 3 · Choose a topic · Class 9

DSA

Practise algorithms and data structures through animated models. Builder enrichment topics.

0 XP0 mastered
Your suggested learning path

0 of 22 topics mastered

Explore → practise → quiz → revise. Earlier topics are recommended preparation; every topic stays open.

Start here: Tower of Hanoi →
  1. Tower of HanoiUp next
  2. Merge sortExplore
  3. Quick sortExplore
  4. Heap sortExplore
  5. Counting sortExplore
  6. Two pointers / pair sumExplore
  7. Fixed sliding windowExplore
  8. Variable sliding windowExplore
  9. Kadane’s algorithmExplore
  10. Merge intervalsExplore
  11. Linked listsExplore
  12. Hash tables & collisionsExplore
  13. Min heaps / priority queuesExplore
  14. Binary search treesExplore
  15. Inorder traversalExplore
  16. Preorder traversalExplore
  17. Postorder traversalExplore
  18. Breadth-first searchExplore
  19. Depth-first searchExplore
  20. Fibonacci / memoisationExplore
  21. Greedy interval schedulingExplore
  22. Binary exponentiationExplore
22 of 22 topics
01Recursion & puzzles

Tower of Hanoi

DSA enrichment

Move every disk from A to C. Move only one top disk at a time, and never place a larger disk on a smaller one. Study the recursive trace or solve the puzzle yourself.

Interactive explainer 3-round quiz
02Sorting

Merge sort

DSA enrichment

Split the range into smaller halves, then merge sorted halves with an auxiliary buffer.

Interactive explainer 3-round quiz
03Sorting

Quick sort

DSA enrichment

Use the last value as a pivot. Partition the range so smaller-or-equal values precede the pivot, then recursively sort both sides.

Interactive explainer 3-round quiz
04Sorting

Heap sort

DSA enrichment

Build a max heap, repeatedly exchange the root with the last active value, then restore the heap in the reduced range.

Interactive explainer 3-round quiz
05Sorting

Counting sort

DSA enrichment

Count each nonnegative integer value, then write values back in increasing order. This version reconstructs values from frequencies; it does not preserve associated records.

Interactive explainer 3-round quiz
06Array patterns

Two pointers / pair sum

DSA enrichment

On a sorted copy, move the left or right pointer according to the pair sum. The target is a required sum, not a value to locate.

Interactive explainer 3-round quiz
07Array patterns

Fixed sliding window

DSA enrichment

Find the maximum sum of exactly k consecutive values. Add the incoming value and subtract the outgoing value instead of rebuilding every sum.

Interactive explainer 3-round quiz
08Array patterns

Variable sliding window

DSA enrichment

Find the shortest consecutive subarray whose sum is at least a positive target. This shrinking-window strategy here is restricted to nonnegative input values.

Interactive explainer 3-round quiz
09Array patterns

Kadane’s algorithm

DSA enrichment

Find a maximum-sum nonempty subarray. At each value, choose whether to extend the previous candidate or start again here. Signed input is allowed for this lesson.

Interactive explainer 3-round quiz
10Array patterns

Merge intervals

DSA enrichment

Sort intervals by start, then merge each overlap with the active result. Intervals that merely touch are merged in this demo.

Interactive explainer 3-round quiz
11Data structures

Linked lists

DSA enrichment

Follow next links from the head. Values need not live next to each other in memory, so index access requires traversal.

Interactive explainer 3-round quiz
12Data structures

Hash tables & collisions

DSA enrichment

Map each nonnegative key to key mod 5. Store colliding keys in a bucket chain. The table shows why collisions need an explicit policy.

Interactive explainer 3-round quiz
13Data structures

Min heaps / priority queues

DSA enrichment

Insert values into a binary min heap, then extract the minimum. Heap order is local: every parent is no larger than its children; the array need not be globally sorted.

Interactive explainer 3-round quiz
14Trees

Binary search trees

DSA enrichment

Insert each distinct value by comparing with the current node. Smaller values go left; larger values go right. This demo ignores duplicate insertions.

Interactive explainer 3-round quiz
15Trees

Inorder traversal

DSA enrichment

Build the example BST, then visit its nodes in left → node → right order. The call stack shows the recursion that makes the order work.

Interactive explainer 3-round quiz
16Trees

Preorder traversal

DSA enrichment

Build the example BST, then visit its nodes in node → left → right order. The call stack shows the recursion that makes the order work.

Interactive explainer 3-round quiz
17Trees

Postorder traversal

DSA enrichment

Build the example BST, then visit its nodes in left → right → node order. The call stack shows the recursion that makes the order work.

Interactive explainer 3-round quiz
18Graphs

Breadth-first search

DSA enrichment

Explore a fixed undirected graph from a selected source. A FIFO frontier visits vertices in increasing unweighted distance from that source. Neighbours are considered in increasing vertex order.

Interactive explainer 3-round quiz
19Graphs

Depth-first search

DSA enrichment

Explore a fixed undirected graph by following an unvisited neighbour as far as possible before returning. Neighbours are considered in increasing vertex order.

Interactive explainer 3-round quiz
20Dynamic programming

Fibonacci / memoisation

DSA enrichment

Build Fibonacci numbers from the base cases and reuse each earlier result rather than recomputing a recursion tree. This bottom-up demo keeps the whole table.

Interactive explainer 3-round quiz
21Greedy algorithms

Greedy interval scheduling

DSA enrichment

Choose a maximum-size set of non-overlapping fixed activities. Sort by finish time, then take the next activity that starts at or after the previous finish.

Interactive explainer 3-round quiz
22Bit techniques

Binary exponentiation

DSA enrichment

Compute a nonnegative whole-number power by repeatedly halving the exponent. Multiply the result by the current base when the low bit of the exponent is 1.

Interactive explainer 3-round quiz