#data-structures
Read more stories on Hashnode
Articles with this tag
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...
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...
Hash tables, also known as hash maps, are a common data structure used to store key-value pairs. They are very efficient for lookups, inserts, and...
Introduction getDigit(num, place): Returns the digit at the specified place value in the number. Example: getDigit(1234, 0) returns 4,...
Explanation Outer Loop (for loop): This loop runs from the beginning of the array to the end. The variable start represents the current pass...