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.
This comment is hidden because it contains spoiler information about the solution
JS :
This comment is hidden because it contains spoiler information about the solution
JS :
Duplicate of https://www.codewars.com/kata/setzeroes
Is it permitted using published problems (like this, from CTCI book) for kata?
Also, would need random tests if it weren't a duplicate.
And I don't know what's the mean of this statement:
where each pixel is 4 bytes
.It seems of no use. like
Can you do this in place?
;-)Anagram is duplicate too:
https://www.codewars.com/kata/anagram-detection
https://www.codewars.com/kata/anagram-or-not
This is a duplicate of https://www.codewars.com/kata/palindromes-2
Run-length encoding is a duplicate to many katas:
https://www.codewars.com/kata/compress-slash-encode-a-message-with-rle-run-length-encoding
https://www.codewars.com/kata/data-compression-using-run-length-encoding
https://www.codewars.com/kata/run-length-encoding
dup: i.e. this
Needs some random tests
Your initial code
(s) =>
should be(s1, s2) =>
This comment is hidden because it contains spoiler information about the solution
1
Test.assertDeepEquals(rotateMatrix([1]), [1], "Incorrect");
[1]
is NOT a 2D array(matrix), it should be [[1]].2
Your tests is NOT testing for
do this in place
, it should test like this:It's a duplicate: https://www.codewars.com/kata/rotate-an-array-matrix
A high quality Kata should include:
Sample Tests -- to help users knowing what's the input and the expected output. Also, you should write these to the description.
Basic Tests -- to help users debug their code. It can contains some edge case.
Random Tests -- It makes your tests to have better coverage and prevent some incomplete solutions passed your tests.
Loading more items...