dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Roderick_Slug

Search: Search took 0.01 seconds.

  1. Re: Using a linear median algorithm to find the largest subset for some given sum

    Thanks a lot. I do have thought about put the smaller elements on left and larger on right. But I forget that I can record them and compare with M. The idea I have thought before leading me into a...
  2. Using a linear median algorithm to find the largest subset for some given sum

    Suppose an array A of n numbers is given along with an integer M. Assume that an algorithm which finds the median of an unsorted array in linear time is also given. Design a O(n) algorithm that finds...
Results 1 to 2 of 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)