Tag

stable sort

1 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Apr 27, 2025 · Fundamentals

Master Python’s Stable Sorting: Using sorted() with key and reverse

Python’s sorted() function offers stable sorting, allowing multi‑criteria ordering through successive sorts, while its flexible key parameter lets you customize sorting logic—such as sorting by length then alphabetically—and the reverse flag enables effortless descending order, making complex sorting tasks straightforward.

Pythonkey functionprogramming fundamentals
0 likes · 4 min read
Master Python’s Stable Sorting: Using sorted() with key and reverse
Python Programming Learning Circle
Python Programming Learning Circle
Nov 30, 2022 · Fundamentals

Sorting Algorithms Overview with Python Implementations

This article provides a comprehensive overview of common sorting algorithms—including bubble, selection, insertion, shell, merge, quick, heap, counting, bucket, and radix sorts—explaining their principles, time complexities, stability, and includes detailed Python code examples and visual illustrations for each method.

Data Structuresalgorithm complexitysorting algorithms
0 likes · 18 min read
Sorting Algorithms Overview with Python Implementations
Python Programming Learning Circle
Python Programming Learning Circle
Mar 17, 2022 · Fundamentals

Comprehensive Overview of Common Sorting Algorithms with Python Implementations

This article provides a detailed introduction to internal and external sorting, compares the time‑complexities and stability of classic algorithms such as bubble, selection, insertion, shell, merge, quick, heap, counting, bucket and radix sorts, and includes complete Python code examples for each.

Data StructuresPythonalgorithm complexity
0 likes · 20 min read
Comprehensive Overview of Common Sorting Algorithms with Python Implementations
Selected Java Interview Questions
Selected Java Interview Questions
Feb 12, 2020 · Fundamentals

Comprehensive Overview of Common Sorting Algorithms with C Code Examples

This article provides a detailed summary of classic sorting algorithms—including insertion, shell, selection, bubble (standard and optimized), counting, merge (recursive and iterative), radix, and bucket sorts—explaining their stability, time complexities, and offering complete C implementations for each.

AlgorithmsC++Data Structures
0 likes · 12 min read
Comprehensive Overview of Common Sorting Algorithms with C Code Examples