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.
Thanks for the tips, tried to solve it for way too long, was impossible without the theorems.
I don't think it's a browser issue. For some reason, it's displayed as
109
in a trainer URL (kata/abcd/train/your_language
), but as10⁹
in the main kata page (kata/abcd/
). It goes back to10⁹
if you select another language while in the trainer (probably because the markdown gets re-parsed in case there are conditional code blocks etc.). This happens to me on both Firefox and Chromium. Perhaps using pure Markdown like`$10^9$`
would work betterYes, I see it as 10 to the power of 9 in Chrome. If you inspect the code, it's written as
10<sup>9</sup>
Maybe the problem is it's also inside some<code>
tags and Edge can't process that?I agree with you that 10 to the power of 9 is equivalent to 1e9.
Is it displayed as 10 to the power of 9 on your browser?
On my browser (latest version of Edge) it is literally disaplyed as the number 109.
1e9 and 109 are equivalent.
The instruction should be updated:
Currently it says:
3 < n < 109
But I think you actually meant:
3 < n < 1e9
I guess it's hard finding the solution on your own, however nice one.
Howdy, I need some help from you guys :)
So, I am using C++ and I was able to have a solution that passes all the tests (including the timeout ones), but it fails afterwards on random tests.
Here are 2 examples: 141163297, 415765168. In both cases, my answer is 4 while the random tests expect 3.
I believe it's some problem in my implementation related to some overflow cases, but it's being hard for me to pinpoint the exact reason...
In order to debug better, I was wondering is someone has a working solution at hand and they could provide me for the 2 numbers:
141163297
415765168
the 3 squared numbers whose sum adds to them.
Thanks a lot!
9+9?
I mean, that works, but it's kind of a shitty fix.
I feel like the best solution to this problem would be to make sure that there are at least something like
20
tests where the answers should be1
,2
, '3', and4
. Then you can leave some extra20
tests that are fully random.It shouldn't be too hard to create a test for a given number of squares.
You can even do something lazy like this:
Then maybe shuffle the tests around so they can't be hardcoded.
there were only
15
random tests in Python, i bumped it to100
. your and akar-0's solutions do not pass anymore, but i dont know if that's enough, your solutions only fail around 15 random tests each timeClosing then
It would be better if someone fixed the issue, lol.
closing then, only one issue should be kept
Yeah, it's the same, I only realized after posting.
Loading more items...