Tuesday, September 18, 2018

A day with five easy level math algorithms (V)

Sept. 18, 2018


Introduction


It is hard for me to understand the problem 868 binary gap. It took me more than 10 minutes and then I understood "distance between two consecutive 1's".

My practice


Here is my discussion link.

I also read one of discuss and then was surprise how elegant solution it is. The link is here.

No comments:

Post a Comment