this code has a problem, if the last digits are Int.MAX_VALUE, since adding one gets you in negative territory. And since there are no restriction in this regard in the task description, this code is a bit faulty, isn't it?
This is not the proper way to raise an issue. You must prove there is an issue with clear logs, examples, etc. About 200 persons solved this kata in Kotlin and nobody reported anything so you're most probably wrong. Please read this and don't raise issues so lightly in the future: https://docs.codewars.com/training/troubleshooting/
this code has a problem, if the last digits are Int.MAX_VALUE, since adding one gets you in negative territory. And since there are no restriction in this regard in the task description, this code is a bit faulty, isn't it?
This is not the proper way to raise an issue. You must prove there is an issue with clear logs, examples, etc. About 200 persons solved this kata in Kotlin and nobody reported anything so you're most probably wrong. Please read this and don't raise issues so lightly in the future: https://docs.codewars.com/training/troubleshooting/
The tests cases for Kotlin are completely wrong.