Topic -3 

SEARCHING AND SORTING


  1. Find first and last positions of an element in a sorted array
  2. Find a Fixed Point (Value equal to index) in a given array
  3. Optimum location of point to minimize total distance
  4. Find the repeating and the missing
  5. find majority element
  6. Searching in an array where adjacent differ by at most k
  7. find a pair with a given difference
  8. find four elements that sum to a given value
  9. maximum sum such that no 2 elements are adjacent
  10. Count triplet with sum smaller than a given value
  11. Search in a rotated sorted array
  12. square root of an integer
  13. Maximum and minimum of an array using minimum number of comparisons
  14. merge 2 sorted arrays
  15. print all subarrays with 0 sum
  16. Product array Puzzle
  17. Job Scheduling Algo
  18. Missing Number in AP
  19. Smallest number with atleast trailing zeroes in factorial
  20. Painters Partition Problem:
  21. Sort array according to count of set bits
  22. minimum no. of swaps required to sort the array
  23. Bishu and Soldiers
  24. Rasta and Kheshtak
  25. Kth smallest number again
  26. Find pivot element in a sorted array
  27. K-th Element of Two Sorted Arrays
  28. Aggressive cows
  29. Book Allocation Problem
  30. Subset Sums
  31. Find the inversion count
  32. Implement Merge-sort in-place
  33. Partitioning and Sorting Arrays with Many Repeated Entries

Topic -4 

STRINGS


  1. Reverse a String
  2. Check whether a String is Palindrome or not
  3. Find Duplicate characters in a string
  4. Why strings are immutable in Java?
  5. Write a Code to check whether one string is a rotation of another
  6. Write a Program to check whether a string is a valid shuffle of two strings or not
  7. Count and Say problem
  8. Write a program to find the longest Palindrome in a string.
  9. Find Longest Recurring Subsequence in String
  10. Print all Subsequences of a string.
  11. Write a program to find the smallest window that contains all characters of string itself.
  12. Rearrange characters in a string such that no two adjacent are same
  13. Minimum characters to be added at front to make string palindrome
  14. Print all the permutations of the given string
  15. Split the Binary string into two substring with equal 0’s and 1’s
  16. Word Wrap Problem .
  17. EDIT Distance 
  18. Find next greater number with same set of digits. 
  19. Balanced Parenthesis problem.
  20. Convert a Sentence into its equivalent mobile numeric keypad sequence.
  21. Minimum number of bracket reversals needed to make an expression balanced.
  22. Count All Palindromic Subsequence in a given String.
  23. Count of number of given string in 2D character array
  24. Search a Word in a 2D Grid of characters.
  25. Boyer Moore Algorithm for Pattern Searching.
  26. Converting Roman Numerals to Decimal
  27. Longest Common Prefix
  28. Number of flips to make binary string alternate
  29. Find the first repeated word in string.
  30. Minimum number of swaps for bracket balancing.
  31. Find the longest common subsequence between two strings.
  32. Program to generate all possible valid IP addresses from given  string.
  33. Given a sequence of words, print all anagrams together
  34. Find the smallest window in a string containing all characters of another string
  35. Recursively remove all adjacent duplicates
  36. String matching where one string contains wildcard characters
  37. Function to find Number of customers who could not get a computer
  38. Transform One String to Another using Minimum Number of Given Operation
  39. Check if two given strings are isomorphic to each other
  40. Recursively print all sentences that can be formed from list of word lists
  41. Rabin Karp Algorithm
  42. KMP Algorithm
  43. Word break problem

Note - Questions in red are most Important ones and asked many times.

            Questions in BLUE are important Algorithms to be Considered.

** If having any sort of problems while Solving do let us know in the Comments Section Below**

ONLINE COMPILER ---



Link to part-1 : Take me to part-1

Link to part-3 : Take me to part-3