CPUFreak91 Member Posts: 2337 From: Registered: 02-01-2005 |
quote: Got this from Linux Journal. Check out the site. The sample questions are pretty interesting. ------------------ "Oh, bother," said the Borg. "We've assimilated Pooh." "Socialism works great... if there are no people involved." -- Pastor David Ginter, Union Church of Guatemala. My Programming and Hacker/Geek related Blog [This message has been edited by CPUFreak91 (edited April 11, 2007).] |
HanClinto Administrator Posts: 1828 From: Indiana Registered: 10-11-2004 |
Very cool! Thanks for the link, CPU. I had a question about one of the sample questions though, maybe someone can catch where I'm wrong: quote: They say that -3 2 1 4 3 3 6 is not a match. Why not? It looks to me like n is 7, and the differences between the numbers are 5 1 3 1 1 3, all of which are in the set of numbers from 1 to n-1 (which is 6). What gives? Does anyone else understand why they don't consider that one to be a match? --clint |
jestermax Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
Utah???? but nobody likes Utah and this sounds EXTREMELY similar to that ACM world programming competition i participated in last year . it was a blast even though my team did horrible, if you have the chance join in. ------------------ |
dartsman Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
-3 2 1 4 3 3 6 does not match, as it's 5 1 3 1 0 3... '0', which is not between '1 to n-1' ------------------ [This message has been edited by dartsman (edited April 11, 2007).] |
HanClinto Administrator Posts: 1828 From: Indiana Registered: 10-11-2004 |
quote: *doh* Right you are, my friend. Good catch! Thanks. |
dartsman Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
np EDIT: post counter++; ------------------ [This message has been edited by dartsman (edited April 12, 2007).] |