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 will show error in some tests
It's been a while but all the words are split, so you'd need to do it for every word separately.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That's what the 'if s' conditional determines, as an empty string '' s evaluates to not s
just a mistake, it shouldn't be there (surely a left over of a previous idea while coding)
This comment is hidden because it contains spoiler information about the solution
Alright i figured it out. Thanks for the help. Now i am just way too slow, so i hope i can shave down my time.
This comment is hidden because it contains spoiler information about the solution
You mentioned fixed test #38. If, for example, there was an error with a
populate
method that preceded test #38, then those blobs wouldn't be added to the population. But as I said, I've only taken a cursory glance so this might not be the cause of what you're encountering.I'll look into that. But shouldn't the test then expect an error instead of a result?
I've only taken a cursory glance, but it may have to do with invalid inputs:
Fixed test 38 i get Error Detected: Expected - [[10, 7, 570]], but instead got [[12, 7, 582]], which i don't understand because when i print the board when the move(2000) comes in and i count all the integers in the board, i count up to 582, which my solution returns as the end size of the final blob, but the solution is expecting 570, which should be impossible since all blobs summed up will give 582. And if i try to print something in the populate function, nothing ever prints on that test so it never gets called? Besides my populate function misbehaving, i doubt my code is doing something wrong since all the other fixed tests run fine... Could someone give a little advice what is going wrong?
COMMENT UPDATED AND CHANGED FROM QUESTION TO ISSUE
(original comment is below, found issue described in reply)
Coding in TypeScript - I am still getting first random test failed (all the other test are always passed, just first random test
R#0
is failed) and no idea why, because sometimes it is really simple test case. Here is the example with logs:It looks that there are actually 2 tests, and result from the first is the expected one ([0,2,1,0]), also second result is correct based on the input
queues
, but the second result is compared with expected result from first test and it is obviously failed.Another thing, I don't understand why there are required input parameters
result
anddirection
, as you can see in example above, in first test the input parameterresult
has assigned value[ 0, 1 ]
and in second test it is undefined. Maybe this causes the issue, because the second result always contains thisresult
parameter from first test at the beginning. Another example just to see it clearly:You can see that result from first test is expected result, and result from second test starts with the input parameter
result
from first test ([ 0, 1, 2, 3, 4 ]).It is really wierd that all the other complex tests are always passed, only this one fails.
Am I missing something here or is this an issue of the test?
Loading more items...