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.
If you have return, it is an explicit return which can be at any point in a method, but the last expression of any method is always returned as an implicit return, so no return is ever needed for the last expression in a Ruby method.
There is an expression
"ab" -> add (str (normal ('a')), normal ('b'))
in theSome examples
section but this expession gives "(ab)" instead of "ab".Could someone explain this above?
Why the following code in c++ produced the following output? Is this correct?
code:
output:
.
a
a
b
Is this ok?
??? The Java equivalent is
null
, like in C# and Javascript. The Void type in Java has no public constructor, so you can't callnew Void()
and you can't return an instance of Void. It's just there to represent thevoid
keyword as something you can interact with.This comment is hidden because it contains spoiler information about the solution
Probably not
Parsing "((cao.z)(b|q))": expected:<((cao.z)(b|q))> but was:<(cao.z(b|q))>
This two answers have same RPN, so its impossible to do with RPN
Is it even possible to do with reverse polish notation? Am stuck with the parenthesis problem (abc) != ((ab)c)
Funny, this
undef_method
delegates#==
and#!
to@obj
and makes this the shortest solution!This comment is hidden because it contains spoiler information about the solution
If your paretheses are matched, it should be valid.
Kotlin:
Str(listOf(Normal('a'), Normal('b')))
Parsing "ab": expected:<[ab]> but was:<[(ab)]>
I was feeling proud of myself, but then I saw your solution, simply breathtaking.
same! xD
but isn't that the very same for any Kata in any language?
This comment is hidden because it contains spoiler information about the solution
Loading more items...