ABCDEFGHIJKLMNOPQRSTUVWXY
1
Questions by Love Babbar:
2
Youtube Channel: https://www.youtube.com/channel/UCQHLxxBFrbfdrk1jF0moTpw Luvksahu
3
Total26
4
Topic:Problems:
5
Array21
6
ArrayReverse the arrayDONE
7
ArrayFind the maximum and minimum element in an arrayDONE
8
ArrayFind the "Kth" max and min element of an arrayDONE
9
Array
Given an array which consists of only 0, 1 and 2. Sort the array without using any sorting algo
DONE
10
ArrayMove all the negative elements to one side of the arrayDONE
11
ArrayFind the Union and Intersection of the two sorted arrays.DONE
12
ArrayWrite a program to cyclically rotate an array by one.DONE
13
Arrayfind Largest sum contiguous Subarray [V. IMP]DONE
14
ArrayMinimise the maximum difference between heights [V.IMP]
15
ArrayMinimum no. of Jumps to reach end of an array
16
Arrayfind duplicate in an array of N+1 IntegersDONE
17
ArrayMerge 2 sorted arrays without using Extra space.DONE
18
ArrayKadane's Algo [V.V.V.V.V IMP]DONE
19
ArrayMerge IntervalsRequire merge sort knowledge
20
ArrayNext Permutation
21
ArrayCount Inversion
22
ArrayBest time to buy and Sell stockDONE
23
Arrayfind all pairs on integer array whose sum is equal to given numberDONE
24
Arrayfind common elements In 3 sorted arraysDONE
25
ArrayRearrange the array in alternating positive and negative items with O(1) extra space
26
ArrayFind if there is any subarray with sum equal to 0DONE
27
ArrayFind factorial of a large number
28
Arrayfind maximum product subarrayDONE
29
ArrayFind longest consecutive subsequenceDONE
30
Array
Given an array of size n and a number k, fin all elements that appear more than " n/k " times.
31
ArrayMaximum profit by buying and selling a share atmost twice
32
ArrayFind whether an array is a subset of another arrayDONE
33
ArrayFind the triplet that sum to a given valueDONE
34
ArrayTrapping Rain water problem
35
ArrayChocolate Distribution problem
36
ArraySmallest Subarray with sum greater than a given value
37
ArrayThree way partitioning of an array around a given value
38
ArrayMinimum swaps required bring elements less equal K together
39
ArrayMinimum no. of operations required to make an array palindrome
40
ArrayMedian of arrayDONE
41
ArrayMedian of two sorted arrays of same size
42
ArrayMedian of 2 sorted arrays of different size
43
44
45
MatrixSpiral traversal on a Matrix
46
MatrixSearch an element in a matriix
47
MatrixMedian in a row-wise sorted Matrix
48
MatrixFind row with maximum no. of 1's
49
MatrixPrint elements in sorted order using row-column wise sorted matrix
50
MatrixMaximum size rectangle
51
MatrixFind a specific pair in matrix
52
MatrixRotate matrix by 90 degrees
53
MatrixKth smallest element in a row-cpumn wise sorted matrix
54
MatrixCommon elements in all rows of a given matrix
55
56
57
StringReverse a StringDONE
58
StringCheck whether a String is Palindrome or notDONE
59
StringFind Duplicate characters in a stringDONE
60
StringWhy strings are immutable in Java?DONE
61
StringWrite a Code to check whether one string is a rotation of anotherDONE
62
StringWrite a Program to check whether a string is a valid shuffle of two strings or not
63
StringCount and Say problem
64
String
Write a program to find the longest Palindrome in a string.[ Longest palindromic Substring]
65
StringFind Longest Recurring Subsequence in String
66
StringPrint all Subsequences of a string.
67
StringPrint all the permutations of the given string
68
StringSplit the Binary string into two substring with equal 0’s and 1’s
69
StringWord Wrap Problem [VERY IMP].
70
StringEDIT Distance [Very Imp]
71
StringFind next greater number with same set of digits. [Very Very IMP]
72
StringBalanced Parenthesis problem.[Imp]
73
StringWord break Problem[ Very Imp]
74
StringRabin Karp Algo
75
StringKMP Algo
76
StringConvert a Sentence into its equivalent mobile numeric keypad sequence.
77
StringMinimum number of bracket reversals needed to make an expression balanced.
78
StringCount All Palindromic Subsequence in a given String.
79
StringCount of number of given string in 2D character array
80
StringSearch a Word in a 2D Grid of characters.
81
StringBoyer Moore Algorithm for Pattern Searching.
82
StringConverting Roman Numerals to Decimal
83
StringLongest Common Prefix
84
StringNumber of flips to make binary string alternate
85
StringFind the first repeated word in string.
86
StringMinimum number of swaps for bracket balancing.
87
StringFind the longest common subsequence between two strings.
88
StringProgram to generate all possible valid IP addresses from given string.
89
StringWrite a program tofind the smallest window that contains all characters of string itself.
90
StringRearrange characters in a string such that no two adjacent are same
91
StringMinimum characters to be added at front to make string palindrome
92
StringGiven a sequence of words, print all anagrams together
93
StringFind the smallest window in a string containing all characters of another string
94
StringRecursively remove all adjacent duplicates
95
StringString matching where one string contains wildcard characters
96
StringFunction to find Number of customers who could not get a computer
97
StringTransform One String to Another using Minimum Number of Given Operation
98
StringCheck if two given strings are isomorphic to each other
99
StringRecursively print all sentences that can be formed from list of word lists
100