#algorithms
Read more stories on Hashnode
Articles with this tag
It involves creating all possible pairs of elements where the first element comes from the first set and the second element comes from the second...
Introduction A Red-Black Tree is a balanced binary search tree with an additional color property for each node (either red or black). This ensures...
Introduction An AVL tree is a self-balancing binary search tree (BST) where the difference in heights between the left and right subtrees of any node...
Introduction A Binary Search Tree (BST) is a data structure that maintains sorted data in a way that allows for efficient insertion, deletion, and...
A Priority Queue is a type of data structure where each element is associated with a priority, and elements are served based on their priority rather...
A heap is a specialized binary tree-based data structure that satisfies the heap property. Max-Heap: In a max-heap, for any given node I, the value...