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.
damn this is good
This comment is hidden because it contains spoiler information about the solution
Mathematics did.
damn i wish i thought of this... stack overflow helps a lot, i suppose.
What a good solution, good job!
This comment is hidden because it contains spoiler information about the solution
Can someone explain this solution???
why is this so small. my code was 8 lines with same logic. :(
S-tier solution. You have brought shame upon my crappy submission -- nice job!
I think page_count use python not useful for math, but I don't no what is right between math and python?
IEEE 754 1985
IEEE 754 2008 seems to say that
pow
is also a reccomended "correctly rounded function", I wonder if that was implemented in the C library...It's not so much about C or the function itself as that you should be extremely suspicious when it comes to expecting exact results from a float. Unless you have some way of reasoning about why this would be correct to do, you're better off avoiding it. And maybe even if you can reason about it. In most cases it is incorrect to use
==
with floats, that is imo the relevant knowledge here.to do some lazy research, looking at https://en.cppreference.com/w/c/numeric/math/sqrt
That would seem to promise the desired behaviour here. I would still prefer an integer-only solution.
that actual standard, to my understandaing, is paywalled. quite obnoxious.
This one times out for me. I had to add a test to break the loop when the new term equals 0.0
Dunno, personally i prefere to handle tests for preconditions and assumptions on parameters (valid values) transparently and seperately
This comment is hidden because it contains spoiler information about the solution
Loading more items...