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.
remove number theory tag this is just a dp problem no number theory knowledge needed
subtask 1 and 3 are draft/retired by now and links to these kata should be removed, especially since those descriptions still contain trainer links.
The website with the "original Vietnamese statement" also seems to be dead so we could just remove the reference to all the numbered "subtasks" all together and just speak of normal and performance version.
Yes, this is regarding Python. Just have a solution like
jump_to_zero = lambda x: x
and hit attempt. It will reach max buffer size.javascript translation
was approved some time ago
Is this for Python, I don't see such logs?
fixed
4kyu imo
In Python
;
is not used as line terminator. It is a separator user to fit multiple lines into one.;
should be removed from initial solution (2 places):return ans;
Oh, I understand. No worries my wording could have been better.
Yeah, that warning would be very unnecessary. What the user does is their problem.
Sorry, I misunderstood your first post. I thought you were saying the author should add a warning to the description that warns users not to print every input. I see now that you meant that the tests should not output the full contents of very large arrays.
Yes, I do believe that ideally every Python kata with large arrays as input should hide them when they are too large. Of course, it's difficult to fix every single one of them, but that doesn't undermine the concern.
If you wish, you can look for every single kata with this problem and leave this same issue there, I believe my point stands.
fixed
There are tons of kata which pass large arrays as inputs, are you saying this warning should be added to all of them?
Do not print the input and output to the console for arrays that are bigger than
1000
elements or such. It gives aMax Buffer Size Reached (1.5 MiB)
and makes it impossible to debug and check the sizes of the lists that are being passed (this should be in the description).Loading more items...