powered by v43.aiApprendre l'anatomie comme un artiste
Français
Step 3 · Choose a topic · Class 8

DSA

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

0 XP0 mastered
Your suggested learning path

0 of 14 topics mastered

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

Start here: Time complexity →
  1. Time complexityUp next
  2. Space complexityExplore
  3. Array traversalExplore
  4. Palindrome / stringsExplore
  5. Recursion & call stacksExplore
  6. Bubble sortExplore
  7. Selection sortExplore
  8. Insertion sortExplore
  9. Linear searchExplore
  10. Binary searchExplore
  11. Prefix sumsExplore
  12. StacksExplore
  13. QueuesExplore
  14. Bit operationsExplore
14 of 14 topics
01Foundations

Time complexity

DSA enrichment

Compare growth models as the input grows. The counts are illustrative operation families, not measured execution times or universal exact runtimes.

Interactive explainer 3-round quiz
02Foundations

Space complexity

DSA enrichment

Compare constant extra storage, a growing buffer and a recursive call stack. The input itself is not included in these auxiliary-space examples.

Interactive explainer 3-round quiz
03Foundations

Array traversal

DSA enrichment

Walk through an array by index and accumulate a running sum. Every element is visited exactly once.

Interactive explainer 3-round quiz
04Foundations

Palindrome / strings

DSA enrichment

Compare the outside characters and move both pointers towards the centre. This demo ignores spaces and letter case; punctuation remains significant.

Interactive explainer 3-round quiz
05Foundations

Recursion & call stacks

DSA enrichment

Unroll factorial calls to the base case, then watch results return. Each unfinished call waits on the stack.

Interactive explainer 3-round quiz
06Sorting

Bubble sort

DSA enrichment

Compare adjacent values and swap inverted pairs. Each full pass puts the largest remaining value at the end. A no-swap pass stops early.

Interactive explainer 3-round quiz
07Sorting

Selection sort

DSA enrichment

Find the minimum in the unsorted region, then exchange it with the first unsorted element.

Interactive explainer 3-round quiz
08Sorting

Insertion sort

DSA enrichment

Take the next value and shift larger values right until there is room to insert it into the sorted prefix.

Interactive explainer 3-round quiz
09Searching

Linear search

DSA enrichment

Check elements from left to right until the target is found or every element is exhausted.

Interactive explainer 3-round quiz
10Searching

Binary search

DSA enrichment

Search a sorted copy of the input. Compare the middle value, then discard the half that cannot contain the target. Report an index in the sorted copy.

Interactive explainer 3-round quiz
11Array patterns

Prefix sums

DSA enrichment

Precompute cumulative sums. With prefix[0] = 0, the sum of an inclusive range [l,r] is prefix[r+1] − prefix[l]. The demo asks for the first k values.

Interactive explainer 3-round quiz
12Data structures

Stacks

DSA enrichment

Push onto one end and pop from that same end. The top is always the most recently pushed value that has not yet been removed.

Interactive explainer 3-round quiz
13Data structures

Queues

DSA enrichment

Enqueue at the back and dequeue at the front. This model tracks a head position rather than shifting every remaining value.

Interactive explainer 3-round quiz
14Bit techniques

Bit operations

DSA enrichment

Inspect a nonnegative integer in eight binary places and toggle one chosen bit with XOR. The highlight identifies the place value changed.

Interactive explainer 3-round quiz