Ad
  • Custom User Avatar

    You are on the right track, but try starting at the outside and count the chains of 1's as you go in.

    Something like
    spiralize(7) => 7, 6, 6, 4, 4, 2, 2, 0