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.
O(n^2) It doesnt look like best practices at all in this case
done in JS, C
this is mint
you assign an unsigned int to a signed int when you do
div= number;
. as a result your calculations are wrong whennumber > INT_MAX
.I don't understand how this is supposed to be a challenge on rust, this is like 8kyu on rust
I think there're lots of fake users vote for this solution by best practice why ?
This comment is hidden because it contains spoiler information about the solution
semicolons are optional in javascript, that's why it works. However, it would be cleaner to used them to be consistent within respective code. Or omit them everywhere.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
done
Description should be language-agnostic
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
Loading more items...