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.
How do you view the input of test cases to help fix issues?
I noticed that the top rated solution fails to return just one value if both values are the same, as requested in the details.
It's a simple fix but sadly the tests did not test for this specific condition.
This comment is hidden because it contains spoiler information about the solution
If you look at the profiles of others here, you can view their solutions to different problems.
Just work through each solution one line at a time, working out what the code is doing and testing it out in your own ide using print statements to return values at each stage. This will give you a better idea of how each person tackles a problem differently, and you'll soon learn new techniques you can build on as well as see poorly written code you should avoid using yourself. Always compare these techniques with the recommended solution to each problem too.
In some of my solutions, I put comments next to each line as to what those lines do. I really should do it more!
What you learnt in the past doesn't necessarily provide a solution.
They merely act as the building blocks to solve new problems.
It's about being creative with the skills you have and thinking logically about the steps you need to take at each stage of the process.