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.
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
Values will always be >= 1.
Is it expected to handle negative year cases (i.e. BC) or the case for zero? I think there are no description about this and the examples are all positive years :-)
Yes, but with meaningful method and parameter names like
race
,v1
,v2
andg
and no tests covering int overflows I personally wouldn't expect foolproof solutions here. ;-)Saved me from hours of debugging/testing.
Thank so much! That's it :)
Apologies for the delay.
It appears the second issue was because I have a wrong IDE settings and thus it complained about the syntax.
Actually I just meant I had to reset the static variables I used for each test case (which looked a bit ugly) - maybe there are better solutions which I did not know.
So yea, please feel free to mark it as resolved and thanks for the Kata you have created.
No answer so I consider the issue as resolved.
Sorry but I don't understand your problem. I just tried a few solutions (yours included) and they work. I don't see any "Reserved word 'function' used as name" The tests have the same form as my other TS translations that you passed. Why is static problematic? You said that the code doesn't compile but you passed.
Please could you be more precise?
The TypeScript translation of this Kata is quite problematic:
Site appears to be down again :(
Same here - would have upvoted if it weren't for that.
I think that "type casting" alone deserve a seperate Kata and should not be mixed with this Kata.
Anyway thanks for the Kata - the "can be called infinitely" part is quite challenging. :)
Loading more items...