Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Data structures and algorithms problems in C++ using STL. Parent comment
Try indexing from 0 instead of 1 if you're not. Then the cycle containing 1 will start with (1, 2, 4, 8, ...). What happens when it wraps around?
There are no comments on this comment yet.
Try indexing from 0 instead of 1 if you're not. Then the cycle containing 1 will start with (1, 2, 4, 8, ...). What happens when it wraps around?