Random commentary about C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search
Sunday, September 26, 2010
Fishes in a lake
There is an unknown number of fishes in a lake and you need to estimate them. You start fishing and you capture 50 fishes, then you mark them all with a special pen and throw them back in the water. You decide to start fishing again and you recapture 2 marked fishes. So how many fishes there are in the lake?