Ad
  • Custom User Avatar

    @IkIkleo Your solution is perfectly correct given the specifications of the problem. The problem description assures you that no single integer would cross 1000000000.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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

  • Custom User Avatar

    Oh yes, you are totally right. I will correct my solution for this. Thank you for pointing out.

  • Custom User Avatar

    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

  • Custom User Avatar

    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