• + 0 comments

    You must have mistyped; carefully check again as an eye for detail is one of many marks of a good programmer. A fresh copy-and-paste into HackerRank, as I just did now with my own code, worked. Upvote if you like the code and ideas behind it, which I leave to users to catch up as mental exercise.