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've been cool if it was stated that the tree is expected to be sorted. Would solve all confusion around the
.insert()
andremove()
methods.my first ever 1 kyu i will be back ))
Oh... thank you. il'try...
you misunderstood the task. look at the error messages, the sample tests and the description: you are supposed to return a function that can be called. Your current implementation returns a
char
. this is why the tests complain thatcalled object type 'char' is not a function
This comment is hidden because it contains spoiler information about the solution
you are not supposed to write your own
main()
function on Codewars. If you do, the tests cannot work correctly, as they provide their own. Also, please use markdown formatting when posting code.This comment is hidden because it contains spoiler information about the solution
approved by someone
fixed, thanks for your report
I think the description example code is wrong for Java. You cannot call a
Supplier
with parenthesis likesupplier()
. In Java you have to call theget()
method on it like so:supplier.get()
.The example in the description should call the supplier in this way:
abc.get()
;OCaml translation (author gone)
Haskell translation
approved
looks like it was rejected
This comment is hidden because it contains spoiler information about the solution
Loading more items...