Time Complexity : O(n) Do not allocate extra space for another array, you must do this by modifyin…
Read moreExpected Time Complexity: O(N) Expected Auxiliary Space: O(1) Constraints: 1 <= N <= 10^5 0…
Read moreGiven three distinct numbers A, B and C. Find the number with value in middle (Try to do it with …
Read moreConsider a sample space S consisting of all perfect squares starting from 1, 4, 9 and so on. You…
Read moreYou are given an integer array nums sorted in ascending order, and an integer target . Suppos…
Read moreGiven an array Arr of N positive integers. Your task is to find the element whose value is eq…
Read moreGiven a sorted array with possibly duplicate elements, the task is to find indexes of first and las…
Read moreCopyright (c) 2021 DoubtHunt. All Right Reseved.