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: Advanced
490. Given a binary tree, find the path that gives the maximum sum using divide and conquer.
491. Implement a function to find the longest substring with at most two distinct characters using divide and conquer.
492. Write a function to find the number of distinct palindromic substrings in a given string using divide and conquer.
493. Given a string, implement an algorithm to find the longest substring without repeating characters using divide and conquer.
494. Use divide and conquer to find the shortest path in a weighted graph.
495. Implement a function to find the total number of unique characters in a substring using divide and conquer.
496. Write a function to check if two strings are anagrams using a divide and conquer approach.
497. Given a binary search tree, find the k-th largest element using divide and conquer.
498. Implement a function to find the longest increasing subsequence in an array using a divide and conquer strategy.
499. Write a function to find the longest contiguous subarray with a sum equal to a target using divide and conquer.
500. Given a string, implement a function to determine if it can be segmented into words from a dictionary using divide and conquer.
501. Implement a function to compute the maximum sum of a rectangular region in a 2D grid using divide and conquer.
502. Write a function to find the longest valid parentheses substring using divide and conquer.
503. Given a binary tree, find the maximum width of the tree using divide and conquer.
504. Implement a function to calculate the total number of unique paths in a grid from the top-left to the bottom-right corner using divide and conquer.
505. Write a function to find the first character that repeats in a string using divide and conquer.
506. Given an array of integers, use divide and conquer to find the majority element (if it exists).
507. Implement a function to find the longest substring that is a permutation of another string using divide and conquer.
508. Write a function to count the number of distinct islands in a 2D grid using divide and conquer.
509. Given a list of jobs with deadlines and profits, find the maximum profit that can be earned using divide and conquer.
510. Implement a function to find the longest consecutive sequence in an array using divide and conquer.
511. Write a function to find the longest common prefix among an array of strings using divide and conquer.
512. Given a binary tree, find the sum of all node values at a given depth using divide and conquer.
513. Implement a function to find the longest palindromic prefix in a string using divide and conquer.
514. Write a function to compute the number of unique ways to climb stairs when each step can be either 1 or 2 using divide and conquer.
515. Given a binary search tree, implement a function to convert it into a sorted doubly linked list using divide and conquer.
516. Implement a function to find the closest pair of points in a set of 2D points using divide and conquer.
517. Write a function to count the number of distinct palindromic substrings in a given string using divide and conquer.
518. Given a string, implement an algorithm to find the longest substring without repeating characters using divide and conquer.
519. Use divide and conquer to find the shortest path in a weighted graph.
Previous
1
2
3
4
5
Next
More Levels
Beginner
Intermediate
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.