#data-structures

Read more stories on Hashnode

Articles with this tag

By iterating digit by digit, and calculating the sum and carry, it handles scenarios for the lengths of the input lists and any remaining carry values ·...

How to merge two linked lists · Problem statement Given the starting nodes of two sorted linked lists, list1 and list2, your task is to combine these...

An implementation for a simple hash set · Problem statement Design a HashSet without using any built-in hash table libraries. Implement MyHashSet...

Graph Coloring by Depth First Search · Problem statement There is an undirected graph with n nodes, where each node is numbered between 0 and n - 1. You...

Using std::vector as a std::stack · Problem statement Given two strings s and t, return true if they are equal when both are typed into empty text...

An example of using std::priority_queue · Problem statement You are given an array of integers stones where stones[i] is the weight of the i-th stone. We...