CMC: Given N, return the N'th digit of DJ's self-describing sequence. To create DJ's self-describing sequence, start with the digits 0-9, then repeatedly append the digits of the current length of the sequence. So when you have [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
, the sequence has 10 items, so you append a 10. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 0]
has 12 items, so the next step is [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 0, 1, 2]
, and so on and so forth.