Re: midterm for 94.404 at UMass Lowell
- From: daw@xxxxxxxxxxxxxxxxxxxxxxxx (David Wagner)
- Date: Fri, 26 May 2006 03:42:56 +0000 (UTC)
TheGist wrote:
Consider a set S of n>=2 distinct numbers given in unsorted order.
c) In O(n) time, determine x,y in S such that x+y=Z, where Z is
given or determine that no two such numbers exist.
Ok, you got me. How do you solve this one in O(n) time?
.
- Follow-Ups:
- Re: midterm for 94.404 at UMass Lowell
- From: TheGist
- Re: midterm for 94.404 at UMass Lowell
- References:
- midterm for 94.404 at UMass Lowell
- From: TheGist
- midterm for 94.404 at UMass Lowell
- Prev by Date: midterm for 94.404 at UMass Lowell
- Next by Date: Re: midterm for 94.404 at UMass Lowell
- Previous by thread: midterm for 94.404 at UMass Lowell
- Next by thread: Re: midterm for 94.404 at UMass Lowell
- Index(es):