Given an array of integers where each element represents the max number of steps that can be made f…
Read moreGiven an array of N integers. Find the contiguous sub-array with maximum sum. Expected Time Comp…
Read moreGiven an array, rotate the array by one position in a clock-wise direction. Expected Time Complexit…
Read moreGiven two arrays A and B of size N and M respectively. The task is to find union between th…
Read moreAn array contains both positive and negative numbers in random order. Rearrange the array elements …
Read moreGiven an array arr[] and a number K where K is smaller than size of array, the task is to f…
Read more//Your program should make the minimum number of comparisons. Time Complexity: O(n) //Here we hav…
Read moreTime 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 more
Copyright (c) 2021 DoubtHunt. All Right Reseved.