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.
Very clever, well played
gg man
You can always browse the reference source of .Net.
TIL what TIL stands for O_°
TIL that actually works o_O
There is a solution to every problem ;)
I started to think it was the
using
part that was the problem, but then I'd have no clue how to solve it :DThanks for fixing it!
One line check fixed. Now proper solutions will pass the kata.
I found out the issue. If your solution is "too good", it detects 0 instead 1 line. Make sure you don't use arrow notation
=>
, butreturn
instead.I'm also getting this, even though I'm not using any local variables (one-line solution) :|
good jop
It depends... Nothing is completely the same.
Everything is relative
If there were additional conditions, there would be other requirements, other tests and another solution. If you have a "brilliant" idea, then make another kata and tests yourself.
I cannot agree it's the best practice and totally valid solution.
According to requirements we should return
1
,0
, or-1
. But1
andTrue
are not completely identical.Just imagine that an output of the function is used later in such piece of code:
str(same_case(a, b))
.str(True)
is not the same asstr(1)
.It seems either requirements should be changed or tests should be updated
Loading more items...