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.
Also explained in the description.
5+9=14
14%7=0
5+9 = ? ;p
This comment is hidden because it contains spoiler information about the solution
Description updated
generating all permuations is brute forcing.
Also consider that the tests include very large numbers but you are probably only interested in the last few digits but you are generating all permutations for the entire number (and putting them in a list on top of it).
If you manage to maybe cut the part out of the end of the number as needed and create only permuations for those (and sort them) then your solution will pass.
Let me know if you need more hints.
This comment is hidden because it contains spoiler information about the solution
Yep: efficiency.
Also, I doubt you are actually passing all the tests, given that message.
Edit: to be more clear and hopefully helpful, don't expect to brute force your way through this kata.
Thanks, I'm glad you liked it :)
Thanks!
Thanks, corrected)
Thanks for the reply.
I updated tests and description of the kata. Please take a look and tell me what you think!
Regards,
Alexander.
There is test case with random inputs after submission. You can just hardcode solution but you will only pass this few sample test cases which are visible in "Your Test Cases:" fields.
done =)
This comment is hidden because it contains spoiler information about the solution