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.
Haskell translation
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).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
Thanks a lot! You help me to find the most stupid bug in my code! Of course it was infinite loop! Thank you!
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.
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.."
what would be the point of that ? your code is much longer and more cumbersome to write than a legitimate solution.
I was able to hardcode it, as tests only go up to 20. Maybe make that 1000.
Wut?
This comment is hidden because it contains spoiler information about the solution
Approved
i have "for int32 = 1111595428: expected '132.131.51.36' to equal '66.65.153.164'" Why this can be?
Thanks for the explanation bro.
Само задача неверно дано 32 в двоичном формате не имеет такое значения которое написано в описаний оно имеет другое значение поэтому некоторые тесты некоректные а так очень легко и просто
Approved
Loading more items...