Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Python translation
Please don't just write a spoiler and not flag it.
This comment is hidden because it contains spoiler information about the solution
Thanks!
For example case 2, couldn't there also be a distance of 8 between each hook?
hooks:
0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200
those are the locations of all the hooks, a total of 26 hooks. So why is 26 not accepted as an answer?
In the python tests, there are cases where there are more than one of the same character, going against your rule of there only being unique characters.
In python, for the random test cases, the argument for year that is passed is an int and not a string.
The base is the number of unique digits. For example, a base 10 number can have 10 unique digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and a base 2 number (Binary) can have 2 unique digits: 0 and 1. The task here is when given a list of numbers, find what base all the numbers are in.
This comment is hidden because it contains spoiler information about the solution
Nice, I've approved
All done :)
Nevermind, I got my friend to check
I think I've fixed the issue but I'm experiencing a bug where it looks like the changes aren't going through for me. Could you see if it's been fixed and tell me and then I'll mark the issue resolved.
all done
The issue was in the number conversion function I was using, it couldn't handle an input of 0 but I fixed it by adding an if statement to catch the problem.
Loading more items...