1: 0 1 0 1 0 1 0 1
2: 0 1 0 1 0 0 1 1
3: 0 1 0 0 1 1 0 1
4: 0 1 0 0 1 0 1 1
5: 0 1 0 0 0 1 1 1
6: 0 0 1 1 0 1 0 1
7: 0 0 1 1 0 0 1 1
8: 0 0 1 0 1 1 0 1
9: 0 0 1 0 1 0 1 1
10: 0 0 1 0 0 1 1 1
11: 0 0 0 1 1 1 0 1
12: 0 0 0 1 1 0 1 1
13: 0 0 0 1 0 1 1 1
14: 0 0 0 0 1 1 1 1
| |
Compute the number of iterations.
Return the element with rank equal to 4.
Copy the iterator, but start with rank equal to 4.
Compute the millionth iteration of 15 nested pairs of parentheses. Initialize an iterator with rank equal to one million, then use the String method to return the corresponding string.
Check the result by iterating a million times - 1.