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.
It still says in the task description that bases above 21 won't be tested. Although for my python solution it is timing out being tested against base 35.
This comment is hidden because it contains spoiler information about the solution
Often when I'm trying to solve 4 kyu kata, like this one, I end up writing code which is mostly functional but has a few bugs and when I try and debug it, because there are so many parts in the code, I get overwhelmed and kinda braindead trying to keep track of what everything is doing. Sometimes I just end up giving up and when I try to rewrite the code in either a cleaner way or just to better understand what it is doing the same thing happens. I'm not sure if I need to use more functions to make the code clearer to read or just learn to write the code in a simpler way so its not as diffcult to understand later but does anyone have any tips?
Thanks, I was reading the logs wrong because the first case did not have a log as it is an empty list and instantly returns 1.
That can't be, the test is this:
And you can see the expected answer is 1, not 0. Are you sure you're reading the logs ok? The previous test expects 0.
There is a test case which has [1,2] as the input and it says that the answer should be 0 but 1^2 ends in 1? My code is returning a 1 but it says 1 should equal 0 when tested. Also looking at the test cases it has ([1,2], 1) indicating 1^2 should return the final digit as 1 but for some reason it thinks the fnal digit should be 0. Coding in python btw.
It ran the test c.decode(c.encode('token')) and the expected output was token, the password was 'attackatdawn' and the alphabet was normal. I ran my code in pycharm and it worked and got the right output 'token' but the kata said that an error occurred. List index out of range.