Skip to main content

All Questions

Filter by
Sorted by
Tagged with
4 votes
1 answer
203 views

Maximum sub-array sum

My code finds the maximum subarray sum and the starting and ending index of that subarray. ...
Drake Nguyen's user avatar
3 votes
1 answer
672 views

Checking whether given array is sorted by divide-and-conquer

I've written a code that I try to use divide and conquer approach to determine if the given array is sorted. I wonder whether I apply the approach accurately. ...
Soner from The Ottoman Empire's user avatar
7 votes
1 answer
957 views

Finding Second Largest Element in an Array

Here's my implementation using divide and conquer in C++. What do you think of this implementation regarding running time ? ...
Ahmed Karaman's user avatar
1 vote
2 answers
314 views

Random iteration over an array using divide and conquer

I have created a utility class which allows random iteration over an array. The idea is pretty much a divide and conquer approach. ...
Dexter's user avatar
  • 435
2 votes
3 answers
434 views

Optimizing a divide-and-conquer algorithm for counting inversions

I have the following code: ...
wei2912's user avatar
  • 1,243