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

Sorting

Put things in order, eleven different ways.

All categories
  • Play

    Bubble sort

    Big values bubble to the end

    beginnerO(n²)
  • Play

    Selection sort

    Pick the smallest, every pass

    beginnerO(n²)
  • Play

    Insertion sort

    Like sorting cards in your hand

    beginnerO(n²)
  • Play

    Merge sort

    Split in half, merge back sorted

    intermediateO(n log n)
  • Play

    Quick sort

    Partition around a pivot

    intermediateO(n log n)
  • Play

    Heap sort

    Build a heap, pop the max

    intermediateO(n log n)
  • Play

    Counting sort

    Count each value, no comparisons

    intermediateO(n + k)
  • 170452936 Play

    Radix sort

    Sort digit by digit

    intermediateO(nk)
  • Play

    Bucket sort

    Scatter into buckets, then gather

    intermediateO(n + k)
  • Play

    Shell sort

    Insertion sort with shrinking gaps

    advanced
  • Play

    Tim sort

    What Python and Java really use

    advancedO(n log n)
Log inStart free