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.
Lua translation Can someone review it ? Thanks
try putting the rooks on a (possibly virtual) chessboard for a small
n
(2, 3 or 4) and see how you would count the positions if you were to do it manually. you should be able to notice how the position of one rook determines that of the rook on the next rank or fileFor the life of me I could not figure out a solution yet alone an elegant one, is anyone able to give me hints/tips? I don't think this is a 7kyu kata, I might be wrong though.
upgraded to chai.assert.strictEqual
fixed by using
BigInt
for the outputThanks!
fork fixing JavaScript
JS fork with random tests and using
BigInt
for the output (fixing this and this issues)(author gone)
Going to the comments section was the best decision I made in a long time ;)
Approved
python new test framework is required. updated in this fork
( JS )
Test.expect
Number.MAX_SAFE_INTEGER
( Haskell )
(Num a,Enum a) => a -> a
will do, which allows floating point types and types that will lead to overflowFloating point representation inaccuracy.
For numbers that are going to lose precision,
product [1..n]
is not the same asproduct [n..1]
.Approved.
Loading more items...