Ad
  • Custom User Avatar

    I confess that it looked almost comically overkill at first but I have to say this is really impressive. Running a quick benchmark of your method against the most common solutions shows that, while other solutions start to take several seconds for huge numbers benchmarked several times, yours stays below 10,000th of a second. Very nice :-)

  • Custom User Avatar

    I think the instructions are unclear: as they stand right now (with pattern(4) and pattern(6)), it sounds like it's just "pop the first digit". However the tests then show that it's not the digit, but the number that has to be popped. Maybe there should be an example pattern(12) showing:
    123456789101112
    .......
    1112
    11

  • Custom User Avatar