Ad
  • Custom User Avatar
  • Custom User Avatar

    The test cases require us to return a decimal number and this sounds like it's asking for a 32-bit number.

    I think that your understanding of "decimal numbers" and "32-bit numbers" is not exactly right. Test cases do not require you to require "a decimal number", but just a number. Representation, decimal or any other, is irrelevant here. And 2149583361 can be described as "32-bit number" if it can be stored with 32 bits of information (which it can).

  • Custom User Avatar

    Final line of instructions could be rewritten to be less misleading...
    "Because the above IP address has 32 bits, we can represent it as the 32 bit number: 2149583361."
    The test cases require us to return a decimal number and this sounds like it's asking for a 32-bit number.

    Once I'd figured that out, I enjoyed it though - thanks

  • Custom User Avatar

    Thanks a lot! You help me to find the most stupid bug in my code! Of course it was infinite loop! Thank you!

  • Custom User Avatar

    You've created an infinite loop. It only triggers when your code reaches the second sample test, so when your code returns the correct answer for the first test, your code will time out.

  • Custom User Avatar

    I have error "Execution Timed Out (12000 ms)". If anybody knows why?
    It's interesting that this error appears when kata return correct answer. When kata return wrong answer there in no error, only message about "expected.."

  • Custom User Avatar

    what would be the point of that ? your code is much longer and more cumbersome to write than a legitimate solution.

  • Custom User Avatar

    I was able to hardcode it, as tests only go up to 20. Maybe make that 1000.

  • Custom User Avatar
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Approved

  • Custom User Avatar

    i have "for int32 = 1111595428: expected '132.131.51.36' to equal '66.65.153.164'" Why this can be?

  • Custom User Avatar

    Thanks for the explanation bro.

  • Custom User Avatar

    Само задача неверно дано 32 в двоичном формате не имеет такое значения которое написано в описаний оно имеет другое значение поэтому некоторые тесты некоректные а так очень легко и просто

  • Custom User Avatar

    Approved

  • Loading more items...