AniketTheProgrammer
Home
(current)
Courses
Projects
YT Projects
Coding Questions
Notification
Contact Us
Log In
All Topics
C Language
C++ Language
Greedy Algorithm
Hashing
Java Language
Linked List
Python
Queue
Stack
String
Sorting
Searching
Recursion
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Binary Tree
Topic: Divide-and-conquer-question / Level: Beginner
1. Implement a binary search algorithm to find the index of a target number in a sorted array.
2. Write a function that sorts an array using the merge sort algorithm.
3. Implement the quick sort algorithm to sort an array of integers.
4. Use divide and conquer to find the maximum and minimum values in an array.
5. Write a function that counts the number of inversions in an array using the merge sort technique.
6. Implement a function that finds the median of an unsorted array using a divide-and-conquer approach.
7. Write a function that computes x raised to the power of n using divide and conquer.
8. Given a list of points, find the closest pair of points using a divide and conquer approach.
9. Implement Strassen's algorithm to multiply two matrices.
10. Write a function to find the majority element in an array (if it exists) using a divide and conquer approach.
11. Use the divide and conquer technique to find the k-th largest element in an unsorted array.
12. Implement a function that rotates an array by k positions using a divide and conquer strategy.
13. Write a function that calculates the sum of elements in an array using divide and conquer.
14. Calculate the number of unique paths in a grid from the top-left corner to the bottom-right corner using divide and conquer.
15. Find the contiguous subarray with the maximum sum in a given integer array using divide and conquer.
16. Write a function that finds the longest common prefix among an array of strings using a divide and conquer approach.
17. Given an array, count how many smaller elements exist to the right of each element using divide and conquer.
18. Calculate the area of the largest rectangle that can be formed in a histogram using divide and conquer.
19. Find the number of ways to tile a 2 x n rectangle using 1 x 2 dominoes.
20. Implement a function that finds a missing number in a sorted array of n elements from 0 to n using binary search.
21. Find the largest sum of non-adjacent numbers in an array using divide and conquer.
22. Implement a function to determine if a string is a palindrome using divide and conquer.
23. Write a function that counts the number of 1s in a binary representation of a number using divide and conquer.
24. Given an array, find the longest increasing subsequence using divide and conquer.
25. Use divide and conquer to reverse an array.
26. Implement a function that finds the intersection of two sorted arrays using a divide and conquer approach.
27. Find the unique elements in two sorted arrays using divide and conquer.
28. Write a function to find the square root of a number using the binary search method.
29. Given a sorted array, find the first and last positions of an element using binary search.
30. Write a function to merge two sorted linked lists using a divide and conquer approach.
Previous
1
2
3
4
5
6
7
Next
More Levels
Intermediate
Advanced
Most Visited
Given an array, find the maximum sum of a subarray that has a given sum using divide and conquer.
Given a string, find the first non-repeating character using divide and conquer.
Implement a function to find the first non-repeating character in a string using divide and conquer.
Write a function to find the minimum window substring that contains all characters of another string using divide and conquer.
Write a function to find the longest common prefix among an array of strings using divide and conquer.
Write a function to find the longest common prefix among an array of strings using divide and conquer.
Write a function that generates all possible combinations of a given string using divide and conquer.
Given an integer n, find the number of ways to express it as a sum of positive integers using divide and conquer.
Given a string, find the longest valid parentheses substring using divide and conquer.
Write a function that counts the number of inversions in an array using the merge sort technique.
Given an array, find the number of ways to split it into two subsets such that their sums are equal using divide and conquer.
Write a function to find the longest increasing subsequence of a string using divide and conquer.
Implement a function to find the longest alternating subsequence in a string using divide and conquer.
Write a function to find the longest increasing subsequence in a sequence of numbers using divide and conquer.
Given a binary search tree, find the kth largest element using divide and conquer.