Barack Obama gets asked a computer science question by Google CEO Eric Schmidt.
ManwithanF1
If certain integers are repeated often, use Radix Sort. If there are not many repetitions and a wide range of numbers, Merge Sort or Heap Sort are the way to go. Quick Sort, depending on how it is implemented, is usually the most versatile.
Flashware
@cyanidesan Is it realy about .. “coolness” ?
Hermetiqa
@bob47910
“probably”
Taking shortcuts while typing makes you seem less educated than you probably are.
bob47910
@Hermetiqa lol thats prbly right
PatrickMoog
damn, we can’t make fun of the American president anymore… stupid smart president…
slapmetalbassftw
@MissMidnitetoker i dont know, he kinda of looks familiar, i think i’ve seen him on tv running a nation somewhere… but i could be wrong
herojohan88
Google got owned ?
Hermetiqa
This was a setup. Political pandering to the geeks.
michaelyc1616
@MissMidnitetoker Who’s MissMidnitetoker?
michaelyc1616
@MissMidnitetoker Who’s MissMidnitetoker?
savicprvoslav
1: question
2: obama looks at his right reads answer , touch his eye and acts smart
irgifted
Radix sort.
sharavsambuu
He is awesome!!!
temporaldisplacement
….I didn’t understand the question? 8( …oh well. lol
MrDogbert2
@MyOverflow
Hahahaha. I love it.
Personally, I’d break it down into sets of 10,000, perform quick sort on each set, and merge sort it back together.
MissMidnitetoker
Who’s that black dude?
BrandMan211
@gorgolyt It seems extremely staged, and I’m ok with that. We specialize for a reason. Also, I am a programmer and until this I didn’t know what bubble sort was (I mean, I’ve obviously thought of that method, but I didn’t know its name).
MyOverflow
Most efficient way to store 1,000,000 32-bit integers?
Easy! Store it in an array and sort it using bubble sort, and save in a plain text file, with all entries separated by a pipe character. That would definitely be the most efficient scheme for storing all 1 million 32-bit integers.
uzername90
@echoesintoeternity Quicksort.
Because, fuck it.
Cresey87
@Lewis1711 rapist?
echoesintoeternity
@sam9524 parallel merge sort (if all you care about is the time), on-disk merge sort ( if u care abt memory and number of processors available)
sam9524
LOL! whats the right answer?
gorgolyt
the people who are screaming that this is patently fake may just be generally undereducated and hence be underestimating the possibility that he would know this.
i know nothing about programming but when i heard the question the first thing i thought was ‘bubble sort’.
considering his response was just a pretty vague way of mentioning the phrase ‘bubble sort’, and considering he’s an educated guy, i hardly find it impossible that this is genuine.
lemonrind
@westmerville What an excellent computer science related comment.
xNIHDx
lmfao charming!?
HE fucking meant to be the anti christ is a charming guy!!