Tagged articles
7 articles
Page 1 of 1
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.

PythonSortingkey function
0 likes · 4 min read
Master Python’s Stable Sorting: Using sorted() with key and reverse
Java Architecture Stack
Java Architecture Stack
Feb 19, 2025 · Fundamentals

Master Python Linked List: Reverse and Merge Techniques Explained

This article explains practical Python implementations for reversing a linked list using iterative and recursive approaches, merging two or multiple sorted linked lists, handling edge cases such as empty inputs, and includes complete code samples with complexity analysis for each method.

Data StructuresPythonalgorithm
0 likes · 12 min read
Master Python Linked List: Reverse and Merge Techniques Explained
Test Development Learning Exchange
Test Development Learning Exchange
Jun 20, 2024 · Fundamentals

Master Python’s sorted() Function: 10+ Real-World Examples & Advanced Tips

Explore the versatile sorted() built‑in in Python through over ten practical examples, covering basic list and string sorting, custom key functions, reverse ordering, composite criteria, and real‑world use cases like sorting dictionaries and word‑frequency analysis, empowering you to write cleaner, more efficient code.

Pythondata sortingexamples
0 likes · 6 min read
Master Python’s sorted() Function: 10+ Real-World Examples & Advanced Tips
MaGe Linux Operations
MaGe Linux Operations
Mar 23, 2020 · Fundamentals

How to Reverse a Number into a List Using Recursion in Python

This article explains how to transform a number like 1234 into a reversed list of its digits using both a straightforward string method and two recursive implementations—standard and tail recursion—while noting Python's general preference for iterative solutions.

ListRecursionalgorithm
0 likes · 2 min read
How to Reverse a Number into a List Using Recursion in Python