Search:

Type: Posts; User: Zaphod_b

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,943

    Re: How to improve this algorithm's efficiency?

    No, it's not a matter of fine-tuning. It's a matter of finding another algorithm. That's kind of the point of having a class in algorithms, right? Not optimizing a particular scheme for a...
  2. Replies
    3
    Views
    1,943

    Re: How to improve this algorithm's efficiency?

    Can you define what you mean by "too slow"? Have you tested it?


    Hmmm---Here's what I think:

    The missingNumber() function is already O(n) in time (where n is the size of the array), isn't...
Results 1 to 2 of 2