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.
Description should be language-agnostic
No sample tests in JS
Node 18. (
mocha + chai
) should be enabledCS test setup is flawed
The description should be language agnostic
JS:
No random tests
mocha
+chai
should be usedCS:
No random tests
mocha
+chai
should be usedPython: Random tests are vulnerable to input modification
Not every vocabulary word is tested in JS --> solution as proof
i dont say im a pro, but
till now what i've observed is.... most calculation problems have solution in the description itself, after we find answer and re-read the question there is mentioned every process to solve....but its too late to know.
and coming to other... description mentions one basic timed out process, we follow same and we end up timed out....but if we can carefully understand the example we get to know there's a pattern to follow, just for "Don't Drink the Water" problem, i was doing blindly and exceeding 30min....1hour....later i was about to skip the ques, then for a final try i wanted to check one testcase seiously, then i got the zimik(just a word for pattern/clue) and applied it, no timed out, just cleared all cases....... if anyone reads this comment...thank you for your time....im a beginner...and thanks to codewars and team for providing this platform for us (beginers)
please add this example to explain this line 'The glass representation may be larger or smaller. If a liquid doesn't fill a row, it floats to the top and to the left.'
{ {
{ 'H', 'H', 'W', 'O' }, { 'O','O','O','W' },
{ 'W', 'W', 'W', 'W' }, => { 'W','W','W','W' },
{ 'H', 'H', 'O', 'O' } { 'H','H','H','H' }
} }
it can be understood as
{ {
{ 'H', 'H', 'W', 'O' }, { 'O','O','O', '' },
{ 'W', '', '', '' },
{ 'W', 'W', 'W', 'W' }, => { 'W','W','W','W' },
{ 'H', 'H', 'O', 'O' } { 'H','H','H','H' }
} }
or
{ {
{ 'H', 'H', 'W', 'O' }, { 'W','O','O','O' },
{ 'W', 'W', 'W', 'W' }, => { 'W','W','W','W' },
{ 'H', 'H', 'O', 'O' } { 'H','H','H','H' }
} }
Why too many format codes should throw an error but
%f
without a number should print%f
?I have my output printed to console and it seems correct with the logic of the program prompt. All fixed test cases are accepted, but the random test cases flag up errors that don't affect the run of the program. Using a try/except statement to try to bypass any exceptions doesnt work and an error is still raised.
Java translation
p1 = [ 7, 7 ]
p2 = [ 6, 8 ]
why do the tests assert that the winner is the first? I think both will die.
Fun little kata! In the Python translation, both the written description:
"... Write a function, learnWord ..." and the example code blocks:
vicky.learnWord('hello') -> 'Thank you for teaching me hello'
refer to the function in camelCase while the Python translation actually wants snake_case (the example tests should make this obvious, so it's not a huge problem, but it's an easy fix - you can use the conditional formatting here so different languages see the correct expected output: https://docs.codewars.com/references/markdown/extensions/ )
Loading more items...