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.
the set-up code says
so you should simply not use
malloc
because that reassignsdst
to a different addressThis comment is hidden because it contains spoiler information about the solution
slice doesn't remove, it prints the values. So we are printing values from index 1 to index -1
Really enjoyed this, combining multiple simple functions was fun.
some test cases are not clearly returned the expected outcome:
It should work for random inputs too: 'dbzctcwmaek' should equal 'dbzctcwmkae'
when the rules is to remove the first and last character of the string
Read this for more info
why do we start the slice at 1 instead of 0?
thnx
That's not a valid solution, and it fails with strings of two chars. Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
That requires Node v20 which isn't available in the site. Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
countSheeps([null,true,[true,true],true]);
is this code ok with this test case?
It worked finally, thank you so much guys! @Chrono79 @Mednoob
This comment is hidden because it contains spoiler information about the solution
Loading more items...