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.
You're welcome, glad to help.
Thank you!
Took a while to come to an approach like that.
Hi, Quark Fox!
Have a look at the example (0, 30, 0, 30) once again:
According to the instruction steps(#1, #3) you have a value of 360 times 2(#1) + 360(#3), which is 1080.
Now add this to 90*3 and you get 1350.
Hope that helps.
Javascript translation:
https://www.codewars.com/kumite/64058635b2dd990031b7ece4?sel=64058635b2dd990031b7ece4
No, they actually don't move.
You can read the above line as
It is the letter, that takes some amount (value) and moves it (i.e. adds or subtracts it) at a certain position
.So, the letters do stay put.
Yep, BigInt is fine, thank you.
Should BigInt be used in js solutions?
While having everything correct up to 57, mine fails at all the next bigger values.
Feels like the description lacks the line from wiki here:
Cards can be played onto a single shared stack, and players call "snap!" if two consecutive cards on this pile are identical.
Hi, Anton!
Are you sure there is definitely a case with empty input?
Well, I guess there's none of them - all the inputs do contain certain values.
A possible cause to your illustration may be input mutating (i.e. you don't make a copy of an input array, but change that in place).
If you're stuck here, consider resolving this one first.
https://www.codewars.com/kata/52a224d9e6d7a078200007b2
Despite the common unlikeness, the entry point is pretty much the same.
In js, (Node v10.x), all you need to successfully pass the kata, it is to implement 5 empty descendant classes, e.g.
class CustomShape extends Shape {}
while leaving the mainShape
class intact.Agree with @St3f4n, looks like there's still some
union
check coverage missing.You may have some working solution for the
intersection
method, while all you got forunion
isTimeInterval.prototype.union = interval => null
- and it successfully turns blueattempt
to the greensubmit
button.That doesn't work for the
test
button though.This one looked a way easier to me than the former
5 command...
, despite the higher rank.Thanks to @donaldsebleung for update on the
loop
command behavior - that was the only tricky thing here.This comment is hidden because it contains spoiler information about the solution
Couldn't wrap my head around the last one in
Sample Tests
section:a
vsgx
.We got 4% for the common space character at the end. Where do the rest 5% come from?
I'm asking, because this was the only thing I had to hardcode to pass the kata. Even the
500 Random Tests
were ok without that.Loading more items...