This problem is actually a little tricky and counterintuitive, but really fun to think about (as a brain teaser). Here is the problem (I’ll just copy it from Wikipedia, lazy evil being :) Suppose you’re on a game show, and you’re given the choice of three doors: Behind one door is a car; behind the …
Category Archives: Interesting
The Bizarreness of Optimization
Background: consider the hashtable with closed addressing/separate chaining: Typically, we can have two different schemes to link through all the nodes. One is to link the last node of the current bucket to the first node of the next non-empty bucket. See the above picture and imagine taht there are links among these buckets. Another …
An Interesting C Program
gdb a.out -batch -ex ‘disassemble/s main’