Skip to content
  • HOME
  • main page
  • Discussion
  • History
  • View source
  • Community Portal
  • BLOGExpand
    • I/O
    • Math
    • Time
    • Sort algorithms
  • Sort algorithms

    Split until trivial merge back in order 

    Byahotnjok June 22, 2026June 22, 2026

    Merge Sort — CodeForge CodeForge — Programming Reference Merge Sort Split until trivial, merge back in order — the divide-and-conquer sort with a guaranteed O(n log n) ceiling and no nasty worst case hiding underneath it. Difficulty: Intermediate Languages: Python · Java · OCaml Read: ~10 min In this article The core idea: divide, sort…

    Read More Split until trivial merge back in order Continue

  • Sort algorithms

    The slowest sort most programmers learn first 

    Byahotnjok June 22, 2026June 22, 2026

    Bubble Sort — CodeCodex Sort Algorithms Bubble Sort The slowest sort most programmers learn first — and exactly because of that, the clearest possible introduction to what “comparing and swapping” even means. Difficulty: Beginner Languages: Python · Java · C Read: ~9 min In this article The core idea: repeated neighbor swaps Why it’s called…

    Read More The slowest sort most programmers learn first Continue

  • Sort algorithms

    The divide-and-conquer sort that’s fast on average, fragile in the worst case

    Byahotnjok June 22, 2026June 22, 2026

    Quicksort — CodeCodex Sort Algorithms Quicksort The divide-and-conquer sort that’s fast on average, fragile in the worst case, and still the default choice behind most general-purpose sort functions in use today. Difficulty: Intermediate Languages: C · Python · Java Read: ~10 min In this article The core idea: partition, then conquer Choosing a pivot —…

    Read More The divide-and-conquer sort that’s fast on average, fragile in the worst caseContinue

CodeCodex Footer
CodeCodex

CodeCodex is a free, open, wiki-powered code repository covering 40+ programming languages. Find ready-to-use algorithms, snippets, and functions — written and improved by developers around the world every day.

Categories

  • Sorting Algorithms
  • Input / Output
  • Math & Algorithms
  • Time & Dates

Company

  • Home
  • Community
  • Blog

Legal

  • Privacy Policy
  • Disclaimer
© 2025 CodeCodex. All rights reserved. Free and open for everyone.
Privacy Policy Disclaimer Sorting Algorithms
  • HOME
  • main page
  • Discussion
  • History
  • View source
  • Community Portal
  • BLOG
    • I/O
    • Math
    • Time
    • Sort algorithms