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.
Would add some fixed test cases for invalid board - type 2, or make them occur more in random tests.
I see solutions that don't count with them and they can still get through on luck
I know it and actually it doesnt matter if you are using fractional arithmetics as you did or rounded floats as I did
Because you are not comparing my Rounded float to your Fractions, I am comparing my Rounded floats between each other and you are comparing your fractions between each other, the number type is not the important here the order is
And even tho floats are not comparable together, they dont show any difference in the first 5 numbers after decimal point, that I use(Infact 1 would probably be enough)
So in conclusion, Yes it would work better using fractions but my way to solve this issue is also not wrong here.
Added a sentence to make it clear in describtion.
Thought its redundant.
Oh i see it. To be honest i don't know what was going through my head when i wrote that part of code.
Should be fixed.
Yeah forgot to correct the text before publishing should look better + some things should be clearer to understand
Should be fixed
Should not happen anymore
Ohh, ok interesting that i didnt trip over this kata when looking if there are duplicates
Random time wasnt a great idea, I see it now.
Made it so only the fastest solution will make it or not
yeah did not notice that its confusing
I rewrote it so its should be clear now
Sorry my first kata, random tests are now added.