Divide and Conquer

  1. Intoduction to Divide and Conquer
  2. Binary Search
  3. Merge Sort
  4. Quick Sort
  5. Tiling Problem
  6. Count Inversions
  7. Calculate pow(x, n)
  8. Closest Pair of Points
  9. Multiply two polynomials
  10. Strassen’s Matrix Multiplication
  11. The Skyline Problem
  12. Maximum Subarray Sum
  13. Longest Common Prefix
  14. Search in a Row-wise and Column-wise Sorted 2D Array
  15. Karatsuba algorithm for fast multiplication
  16. Convex Hull
  17. Quickhull Algorithm for Convex Hull
  18. Distinct elements in subarray using Mo’s Algorithm
  19. Median of two sorted arrays
  20. Floor in a Sorted Array
  21. Find closest number in array
  22. Find a Fixed Point in a given array
  23. Find a peak element in a given array
  24. Check for Majority Element in a sorted array
  25. K-th Element of Two Sorted Arrays
  26. Find the Rotation Count in Rotated Sorted array
  27. Find the minimum element in a sorted and rotated array
  28. Find the only repeating element in a sorted array of size n
  29. Find index of an extra element present in one sorted array
  30. Find the element that appears once in a sorted array
  31. Count number of occurrences (or frequency) in a sorted array
  32. Find the maximum element in an array which is first increasing and then decreasing
  33. Decrease and Conquer
  34. Binary Search on Singly Linked List
  35. The painter’s partition problem
  36. Find the number of zeroes
  37. Numbers whose factorials end with n zeros
  38. Find the missing number in Arithmetic Progression
  39. Number of days after which tank will become empty
  40. Find bitonic point in given bitonic sequence
  41. Find the point where a monotonically increasing function becomes positive first time
  42. Program for Tower of Hanoi
  43. Square root of an integer
  44. Find cubic root of a number
  45. Allocate minimum number of pages
  46. Collect all coins in minimum number of steps
  47. Modular Exponentiation (Power in Modular Arithmetic)
  48. Find a peak element in a 2D array