Ad
  • Custom User Avatar

    I used JavaScript and was banging my head against the wall here trying to get around the timeout issue. I tried a ton of optimisations with no luck. Finally, I changed the Node.js runtime version from 8+ to 10+. Presto! Slightly empty vitory, but at this stage I'll take it.

  • Custom User Avatar

    Very elegantly done. My solution does something similar (as I also didn't know the number threory) but it is very clumsy in comparison to this one. And kudos for teaching me how to do string interpolation in JS!