Mastering Core Linked List Operations: Removing Elements, Custom Implementation, and Reversal
203. Remove Linked List Elements
This problem requires removing all nodes from a singly linked list that have a specific value. Two common approaches demonstrate key linked list operation patterns: using the original head node directly, and using a dummy head node to unify handling of all nodes.
Aproach 1: Without Dummy Head
When operating with ...
Posted on Tue, 23 Jun 2026 17:06:43 +0000 by murpe
Heaps: Core Concepts, Implementations, and Practical Applications
A heap is a specialized complete binary tree that adheres to strict ordering rules, with two primary variants:
Max Heap: Every node’s value is greater than or equal to the values of its child nodes.
Min Heap: Every node’s value is less than or equal to the values of its child nodes.
As a type of complete binary tree, heaps exhibit key charact ...
Posted on Sat, 13 Jun 2026 17:27:42 +0000 by scorphus
Implementing Bubble Sort in C
Bubble Sort operates by repeatedly comparing adjacent elements in an array and swapping them if they are in the wrong order. This process is repeated until the entire array is sorted, with larger elements gradually moving towards the end like bubbles rising to the surface.
Bubble Sort is suitable for small datasets or partially sorted data and ...
Posted on Thu, 14 May 2026 05:23:15 +0000 by joviyach