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

Search:

Type: Posts; User: Vaxler

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    5,885

    Re: Maximum range of given any 'k' intervals[C++]

    The problem is just solved. I've done it on my own. Key here was a priority queue having maximum k elements and binary search by ranks of intervals.
    Complexity O(n*logn)
  2. Replies
    4
    Views
    5,885

    Re: Maximum range of given any 'k' intervals[C++]

    And the code i've written. Can aynone tell me how to make it faster? Faster implementation?
    Here i didn't print the indexes of intervals but it has to do it:
    https://ideone.com/sYCVeL
  3. Replies
    4
    Views
    5,885

    Maximum range of given any 'k' intervals[C++]

    I have a problem with one task.

    The main content of this task is that we are given n invervals [a; b] and number k. We have to find the maximum common range of any k intervals and print the...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured