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
I pass both of your mentioned cases with your solution. Clearly the issue lies within some part of your null or negation checker, but seeing your latest solution (which is correct), we may not know...
Попробуйте внимательней посмотреть на формулировку задачи, возможно, вам поможет переводчик!
Обратите внимание на формулировку задачи, если непонятно забейте ее в переводчик! Успехов
broken ass kata. dont worry ab it
I am not sure why but, when i directly put an empty array, [], in the return section for if the array is empty or null, i get a wrong answer for it.
But, when i assign a variable with an empty array and then return said array for my empty or null array. It works.
Why is that?
Edit: I forgot to mention that this is JavaScript.
Assigning size_t to int isn't safe.
Looks cool but not optimal, so far I think it's O(n) the optimal solution.
ок, попробую еще раз рассотреть данную задачу
A very, very worthy task. Like everyone else, I also thought about a bug in the test, but in reality it turned out that you need to be very careful and logically consistent in every step. My applause to the author.
нету тут никакого бага, все тесты с правильным решением проходятся
Там косяк с тестами. Одни входные данные доджны выдавать разные результаты по тестам - bug
So does it mean I can never solve this problem?
Начал решать, пробовал по разному. Решения тесты не принимали. Начал шарить возможные решения, нашёл несколько примеров, попробовал, они тесты тоже не прошли. Начал искать в готовых решениях, но О ЧУДО!!! Решения которые кто-то выложил после того как программа прошла тесты ТОЖЕ НЕВЕРНОЕ...
Very funny and interesting Kata! Thanks to author!!!
Loading more items...