GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • Fundamentals & OOPs
  • Data structures and algorithms
  • Aptitude
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 27 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn · DSA

Trees

Hierarchies, search trees, and balancing.

All categories
  • Play

    Binary tree basics

    Root, leaves, height, depth

    beginner
  • Play

    Tree traversals

    Pre, in, post, and level order

    beginnerO(n)
  • <> Play

    Binary search tree

    Insert, search, delete

    beginnerO(h)
  • Play

    AVL tree

    Rotations keep the tree balanced

    intermediateO(log n)
  • Play

    Red-black tree

    Recolor and rotate to stay balanced

    advancedO(log n)
  • Play

    Splay tree

    Recently used nodes move to the top

    advanced
  • Play

    Treap

    A BST with heap priorities

    advanced
  • Play

    B-tree

    Many keys per node, built for disks

    advancedO(log n)
  • Play

    B+ tree

    How databases index rows

    advanced
  • +×325 Play

    Expression tree

    Evaluate math as a tree

    intermediate
  • 01 Play

    Huffman coding

    Shorter codes for common letters

    intermediateO(n log n)
Log inStart free