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.
k it was a brainfart
I was pressing
attempt
multiple times to make sure my code isnt making any very rare mistakes,and I think I found a mistake in the c# translation author's solution.
It thinks that the index of 4949 should be 18685 when its actually two less (18683)
This is really rare and you can easily pass the random tests but i thought id mention it.
the
?:
operator is useless here. the left of the?
already returns your boolThis comment is hidden because it contains spoiler information about the solution
I spent like 1.5 hours on this and got the shortest solution this kata has so far I think :D
so please press clever on it
thanks for this. I learned more about regexes and will use this info if i can :D
I already found the issue. My vs uses commas for decimals and the browser uses dots.
My code works in the visual studio solution I'm coding in, but when i directly copy the code to this browser, it gives some completely wrong answers for 4 tests in attempt. It's failing for no reason basically.
This comment is hidden because it contains spoiler information about the solution