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.
for 7019
a = 1020
b = 5999
so that a + b = 7019
and digitsum for a = 3, b = 32 therefore result is 35.
My advice would be to look at the test cases and think hard about how to make them pass.
I didn't understand how to even start solving this question,
please i would like to know what would i need to learn to solve this type of questions
I know OOP but don't know how to solve this question
It could be like this:
I don't understand this question, there is just one exsample.
can someone write how the code should work for the number 7019:
how did the got to 35? and why?
This comment is hidden because it contains spoiler information about the solution
Change Python version to 3.6. Read SO Martijn Pieters's post
This comment is hidden because it contains spoiler information about the solution
@omeisi Please stop editing/adding wiki pages. Just reply here.
@omeisi
What @Chrono79 meant is to use that page as a reference when writing a comment in proper markdown format. Not to edit and replace the page content with your code.
Please post your comment here. You can use https://github.com/Codewars/codewars.com/wiki/Markdown-Formatting/24e6420d31d00d2e0e6ddc27cebbfd216541be76 as a reference until I revert your changes.
So i wrote it again, i hope this is what you meant,
I have no idea how to mark it as a spoiler.
I got the same problem, my code works fine.
Happened to me too , my guess is that they want you to solve it for large n.
useally if you have nested loops in your code you will have this problem or this note.
which mean this is not the best way to solve it. On**2 Time
It could be you're using global vars, but I can't tell for sure without seeing your code. If you post it, use proper markdown and mark your post as having spoiler content.
This comment is hidden because it contains spoiler information about the solution
Loading more items...