Category: Data Structures


Built-in Heaps

Explore native heap implementations across Python, Java, JavaScript, Go, C++, and Rust. Learn how to use min heaps and max heaps effectively, and why understanding heap construction is crucial for ...

Priority Queue

This article dives into the fundamentals of Priority Queues exploring their key operations, use cases, and detailed implementations in Python, Java, C++, Go, and Rust, with a focus on efficiency an...

Heap sort

Master Heapsort with this concise guide, covering its O(n log n) time complexity and step-by-step implementation in Python, Java, C++, Go, and Rust. Perfect for developers seeking a deep understand...

Heapify

Explore the concept of heapify with in-depth explanations on converting arrays into min heaps and max heaps. This comprehensive guide covers both iterative and recursive implementations across mult...

Heap

Learn the fundamentals of heap data structures in this comprehensive introduction. Understand how heaps work, their types, and key operations like insertion and deletion, with clear examples and us...

Min heap

Discover the essentials of Min Heap data structures. Explore how Min Heaps work, their key properties, and learn how to perform operations like insertion, deletion, and heapify with step-by-step ex...

Max heap

Discover the essentials of Max Heap data structures. Explore how Max Heaps work, their key properties, and learn how to perform operations like insertion, deletion, and heapify with step-by-step ex...

Insertion in Binary Search Tree

Given a Binary Search Tree (BST) insert a new node in BST. Insertion in the binary search tree is always done as a leaf node. We have to traverse the binary search tree and find the right position ...

Search the node with minimum value in a Binary search tree

Search the node with minimum value in a binary search tree. To search a node with a minimum value in a Binary Search Tree, we have to traverse to the left-most node at the bottom.

Search a node in Binary search tree

In this tutorial, we are going to learn that how to search a node in a Binary search tree using recursive and iterative solution.