### C++ program for Sliding Window Maximum

March 27, 2022

Question : You are given an array of integers and a integer k. You need to figure out the maximum […]

### Merge Overlapping Subintervals

March 27, 2022

Question : You will be given a collection of intervals. Now you need to merge all the intervals. Input: intervals […]

### 3 Sum Problem (C++)

March 27, 2022

Question : You are given an array . You need to return all the unique triplets which sums to zero […]

### Longest substring without repeat (C++)

January 6, 2022

Question : You are given a string str , you have to find the length of the longest substring which […]

### Single Element In Sorted Array (C++)

January 6, 2022

Question : You are given a sorted array . In the array all elements appeared twice , and there is […]

### Search Element In a Rotated Sorted Array (C++)

January 6, 2022

Question : You are given an integer array .The given array is sorted but it is rotated . For example […]

### Remove Duplicate from Sorted array (C++)

January 6, 2022

Question : You are given an array which is sorted , Your task is to remove the duplicate elements and […]

### Set Matrix Zeroes (C++)

January 6, 2022

Question : You are given a m x n matrix with integers . if an element is 0, set its entire […]

### Search in a 2D Matrix (C++)

January 6, 2022

Question : You are given a 2D matrix of mxn ; your task is to find if the given number […]

### Find the Majority Element I (C++)

January 6, 2022

Question : You are given an array , You need to find out if there is an element which has […]

### Pow(x,n) | You are given two integers , write a function to calculate x^n .

January 6, 2022

Question : You are given two integers , write a function to calculate x^n . Example : x=2 , n=`10 […]

### Find the Duplicate Number

January 6, 2022

Question : You are given an array . The array contains integer from 1 to n .The array contains n+1 […]

December 21, 2021

Question : You are given an array of integers.Your task is to find the contiguos subarry which has the largest […]

### Rotate Matrix

December 21, 2021

Question : A n*n matrix is given to you .You need to rotate the matrix in clockwise direction by 90 […]

### 2 Sum Problem

December 21, 2021

Question : You are given an array of integers and an integer SUM.Your task is to deteremine whether or not […]