#learn-coding
Read more stories on Hashnode
Articles with this tag
Single number · Q25:Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a...
Find Pair given difference · Q17:Given an array Arr[] of size L and a number N, you need to write a program to find if there exists a pair of elements in...
Key Pair · Q16:Given an array Arr of N positive integers and another number X. Determine whether or not there exist two elements in Arr whose sum is...
Container with the most water · Q15:You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of...
Trapping rain water · Q14:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can...
Range Addition · Q13:Assume you have an array of length n initialized with all 0's and are given k update operations. Each operation is represented as a...