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 < res.size()
so only initialized elements are accessed.I doubt that banker's rounding is used for rounding prices. For example, the IRS rounding rule is to round half up. Most programming languages also use this rule for positive numbers (the only exceptions which I know are Python, R, .Net languages). So the expected rounding behavior should be clearly specified.
Approved
String.init len @@ const @@ Random.choice @@ Array.enum chars
Do not use
const
here. All generated words are in the form"AAAAAA"
(one character repeatedlen
times).See my issue above. You should not modify the input to pass tests.
From the description: "Your function can modify the initial board value as much as you like, but the test suite will validate what you return, so don't forget to return it".
But if you modify rows of the initial board then you will not pass tests. Tests call the user solution with a shallow copy of
board
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You skipped
$5^1 + 5^2 + 5^3 = 155$
which is the 7th Chandos number.This comment is hidden because it contains spoiler information about the solution
[10, 3, 1, 0]
is not a valid solution because it does not satisfy the conditiond > 0
.Approved
You may replace the Bearing initialization line with
to avoid warnings.
Haskell: The type of the initial solution should be
Integer -> Int -> Integer
.Loading more items...