Barack Obama - Computer Science Question
User comments:
[2012-05-19 17:14:20] garciadelacadena - Classical Obama ...
Classical Obama answer.. note that he didn't respond the question, he only resorted to mention which algorithm is the most inefficient.
[2012-05-17 22:38:58] Mi2990 - script type = " ...script type = "vbscript" Option Explicit DIM RonPaul, presidentoftheunitedstates, winstheelection if Ron Paul wins the election = "yes" then RonPaul = cint(presidentoftheunitedstates + winstheelection) end if document.write("Ron Paul Is The President of The United States") & RonPaul "yes sir X)"
[2012-05-17 18:26:53] Banomann - *Sigh*, the ...*Sigh*, the ignorance is unreal.
[2012-05-16 05:28:36] dirtcutter1 - He was given the ...He was given the question in advance. The whole thing was staged... A stunt. Read 'In the Plex' by Stephen Levy.
[2012-05-13 06:01:22] Zshazz - Introsort is ...Introsort is actually not as good as you would think. In actual tests, its performance is lacking. Honestly, the best "easy" way to sort things is with a quicksort with a decent pseudo-random pivot. Timsort is extremely good, and usually you don't have to worry about implementing it. Java now uses it as its default sorting algorithm and Python has used it for awhile. It's so good that you can just throw two lists together and call sort and be done... even when you know they're already sorted.
[2012-05-12 17:42:41] nebule1234 - we love mr. ...we love mr. president
[2012-05-08 00:28:29] afrolion2 - linear time sort ...linear time sort would be the best way!
[2012-05-06 16:08:23] explosionbooom - smoothsort is the ...smoothsort is the way to go :D
[2012-05-01 10:25:03] TheBandwagonman - Ron Paul- "Java? ...Ron Paul- "Java? Is that some type of fancy type of government coffee? There's another area where the federal government crosses the line!"
[2012-05-01 09:51:54] TheDarkFalcon - Richard Nixon 2.0Richard Nixon 2.0
[2012-04-26 16:39:13] HolyAvgr - Nice try, java fag.Nice try, java fag.
[2012-04-26 00:40:58] sepomat - This is why Obama ...This is why Obama is awesome!
[2012-04-24 05:36:17] charliecarlsen - I would have to say ...I would have to say introsort, excusing only the possibility of knowing the data structure that the ints are stored in, possibly accepting merge sort. I haven't heard of this Timsort until just now but reading a little bit, I can't say I would use it because I don't actually know how to implement it. Regardless, he was right that bubble sort is not the answer.
[2012-04-23 03:53:46] kashey2000 - But I liked this ...But I liked this one...
[2012-04-12 07:03:54] NeoXC - Timsort would be ...Timsort would be the best algorithm, since it combines both insertion and merge sort, thus eliminating merge sort's worse case in sorted lists. Also, in large enough n, merge sort usually outperforms quicksort....but since Timsort is a hybrid insertion/merge sort, it's the best model, but insanely difficult to implement.
[2012-04-12 06:35:27] StoneDream1 - I think the answer ...I think the answer is Radix Sort or External Sort.
[2012-04-11 02:53:27] NIN1024 - True bubbles sort ...True bubbles sort best case complexity is actually O(n)
[2012-04-11 02:51:57] NIN1024 - lol your coding ...lol your coding style makes me cringe.
[2012-04-09 07:17:54] DavverOne - quantum bogo sort. ...quantum bogo sort. duh.
[2012-04-09 00:06:49] Ayplus - throw new ...throw new Incorrect_President_Exception
[2012-04-09 00:06:31] Ayplus - throw new ...throw new IncorrectPresidentException
[2012-04-06 05:51:03] gevst21 - too bad "Ron Paul" ...too bad "Ron Paul" is not a valid reference name... try Ron_Paul, noob
[2012-04-04 04:32:22] spamspanker123 - Why is "bubble sort ...Why is "bubble sort" in the keywords?
[2012-04-03 19:35:14] tomo25252 - If they are almost ...If they are almost sorted, then the bubble sort would actually be the best way to go... Just saying.
[2012-04-03 09:47:46] soulpower363636 - Obama the coolest ...Obama the coolest president ever. He is not a socialist communist muslim or unamerican or satan.....he is simply an awesome guy.
[2012-04-03 09:46:19] soulpower363636 - I dont understand ...I dont understand why americans like to elect a president and bash him all during his entire tenure.
[2012-03-27 04:44:25] Iceni77 - Even to this day, I ...Even to this day, I keep thinking that Obama would be a cool guy....... but he'd have to lose that Commie Pig part and the 'Destroying America' part for me to really consider it.
[2012-03-25 17:24:44] Ilikemustard - It depends, if the ...It depends, if the data is in completely random order quicksort will be faster on average
[2012-03-24 22:27:40] RoarOfVictory - Heapsort is fasterHeapsort is faster
[2012-03-22 16:44:18] thesmartwholesaler - That was extremely ...That was extremely quick thinking on Obama's feet...I can't imagine how to even begin answering that question! I guess if that was the interview question for the President, we would have far less candidates!
[2012-03-15 04:34:32] cooldyland - 3-way radix ...3-way radix quicksort?
[2012-03-10 03:15:57] amansermeno - @deathslayer101Ron ...@deathslayer101Ron Paul won't know how to use google