Barack Obama - Computer Science Question

Channel:weedipikia · Length:1:25 · Published:2008-01-26 · Views:1160448

Watch on YouTube

Summary

A one-minute clip from Barack Obama's 2008 Google visit in which Eric Schmidt asks him the most efficient way to sort a million 32-bit integers. Obama answers that bubble sort would be the wrong choice.

Why HN recommends it

Used as a joke or aside about bubble sort and as evidence that Obama was tech savvy, not as something recommended for its content.

Algorithms & data structures · Tech pioneers & interviews · US politics & elections

Subtitles (excerpt)

um now now Senator you're here at Google and I like to think of the presidency as a as a job interview now it's hard to get a job right as President right and I you're going through the rigers now it's also hard to get a job at Google right we um we have questions and we ask our candidates questions and uh this one is from Larry schwimer okay what you guys think I'm kidding it's right here what is the most efficient way to sort a million 32bit integers well uh I'm maybe I'm sorry maybe no no no I think I I I think uh I think the uh the bubble sort would be the wrong way to go uh come on who told him this okay I didn't see science we've got our spies in there well why not let's okay let's ask let's ask a a different interview question um and more obviously more serious um you're you're you're you're you're not notable in this campaign for your steadfast opposition to the Iraq War right uh

On Hacker News

While I'm sure the President doesn't research all laws he signs, Obama is somewhat tech savvy. [VIDEO] I wouldn't be surprised if he made the threat based on his own personal moral ideology. — mortdeus, 2013-04
I get your point, but why would you pick bubble sort? That’s one any engineer should be able to implement without any help. It’s the more complex/useful ones worth discussing. Even Obama knows this: [VIDEO] — dickeytk, 2019-11
Bubble sort is never a good choice unless so extremely lazy or what to impersonate Obama...[0] There are dual-pivot quicksort, smooth sort (in-place, based on Leonardo numbers and takes O(n) time to process a presorted array and O(n log n) in the worst case, and achieves nearly-linear performance on many nearly-sorted inputs), TimSort (that's stable as plus). Morealso changing stable to unstable … — xxs, 2018-05

Related videos