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.
arithmetic progression
ахахахахаха
Your code does almost the same thing, but manually checks the difference sign and changes it to positive by itself, which adds extra if statements. They can slow things down a bit, especially if the code is executed many times. Math.abs() will work faster. The difference is minimal.
This comment is hidden because it contains spoiler information about the solution
I advise you to try to figure it out on your own. I think there’s no point in immediately reading the solution or looking at the answers if something doesn’t work out.
It's better to try solving the problem yourself, and if it doesn’t work, lower the difficulty. If you're a beginner, it might be too early to tackle 4 kyu problems.
I can explain the solution without any problem, as can anyone else, but it won’t really help you. I'm sure that with time, as you gain experience, you'll be able to solve complex problems independently and efficiently. Good luck!
Struggeled with this formula, so i had to do 2 loops. Good work!
ok letmedie sps paka
I would totally agree with you if I knew English better. But when I put those words into a translator, they came out with the same meaning
This comment has been deleted.
I feel so sorry for this guy. He solved only 3 problems and left codewars
Thank you sir.
ohhh nice !
I came across such a problem on leetcode. And his level was definitely higher than easy
where photo
I am writing from a second account (the main one is blocked). Sorry, I've been sitting here for about 30 minutes trying to understand my code. But I still don't understand.
Loading more items...