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.
Approved
You may replace the Bearing initialization line with
to avoid warnings.
Haskell: The type of the initial solution should be
Integer -> Int -> Integer
.If you have a billion-character string then calling
ToLower()
on it will create another billion-chararacter string. Most likely, it will be slower to create this second string than callingChar.ToLower()
for each character twice.Approved
Approved
Approved
Do not use global variables. The initial value of
result
will not be0
when your solution is invoked several times. Moveresult
inside your function and usenonlocal
in your nested function.Please do not change translations and invalidate existing solutions without any discussion. I will revert your changes.
The documentation does not mention that this method requires Batteries 3.7.0 (CW has 3.6.0) or OCaml 5.1.
This comment is hidden because it contains spoiler information about the solution
I don't see
Map.String.of_list
in Batteries.It is a common OCaml practice to raise an error instead of returning optional results. But optional results are also acceptable.
Approved
I suggest to format
Z.t
values as follows:Loading more items...