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