News for hackers. Stuff that matters.
Re:Android is a screwed, hard-coded, non-portable abomination. by tptacek on Friday November 06, 2009 @12:34AM (#925506)
I love that the O(n^2 / 2) algorithm for this problem is modded 4x the O(n) one.
Re:Android is a screwed, hard-coded, non-portable abomination. by jongraehl on Friday November 06, 2009 @02:10AM (#925623)
If you meant to be O(n), you should have used p=strchr(p,' ') for the next-iteration part of your for loop.
Re:Android is a screwed, hard-coded, non-portable abomination. by tptacek on Friday November 06, 2009 @02:16AM (#925627)
I didn't write that code, Google did. I wonder if the person who wrote it can figure out how many golf balls fit in a school bus?