Random commentary about C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search

Friday, March 23, 2012

You have 25 bits

Every time you turn a bit on, you should put it as far away as possible from the the other bit already turned on. What is the best bit to turn on at the beginning?

Beginning at center (13 th place) will be good option as it leaves room for next two bits. A binary search (optimal ?).

ReplyDelete