#data-structures
Read more stories on Hashnode
Articles with this tag
Given a Binary Tree, find its Boundary Traversal. The traversal should be in the following order: Left boundary nodes: defined as the path from the...
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You have to modify the array A to contain the merge of A and B. Do...
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if...
Given an array of size N-1 such that it only contains distinct integers in the range of 1 to N. Find the missing element. This has a simple approach...
Given an array of N integers. Find the contiguous sub-array(containing at least one number) which has the maximum sum and return its sum. Example...
Given an unsorted array A of size N that contains only non-negative integers, find a continuous sub-array that adds to a given number S. In case of...