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.
@IkIkleo Your solution is perfectly correct given the specifications of the problem. The problem description assures you that no single integer would cross
1000000000
.Hello. I'm the one who translated it into C++. Is your issue that the tests don't cover cases where "broken" sequences would overflow
INT_MAX
? If that's what you mean, then that's by design. The constraints in the problem description state that no integer is larger than 1'000'000'000 (much lower than INT_MAX). If that is your issue, then this isn't an issue at all. This is the specification of the Kata and is followed by all the translations I've seen.everything seems to understand your question, last time I was too inattentive, the problem says that all numbers lie in the int range , and no exceptions need to be solved
Oh yes, you are totally right. I will correct my solution for this. Thank you for pointing out.
Hi, as described in "Given a sequence of one or more consecutive natural numbers concatenated into a string", i thought "78910111011" does not fit this describition
I see there really is a problem with the C++ translation, but unfortunately I am not competent in it, could you please give your opinion why that code does not give errors, otherwise I will not be able to help in any way