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.
I really need to remember this exists.
how could that be even possible
6 characters longer than my solution :D (ignoring the newlines added for legibility)
pretty much the same thing as mine... not bad!
This comment is hidden because it contains spoiler information about the solution
Isn't the time complexity O(n)? At least O(n²/(n+1)).
Mathematically, it the same, but sometimes, we lose sense with over-refactoring.
Nice solution :-)
Thank you for your solution and explenetion!
if l=2 and w=2 it would output 8 which is not right
Я только смотрел твоё вмдео спасибо
Don't do this in an interview
The sorting is not done on the same n (input length), so I don't think you're right in that it's O(n log n)
Hint #1 is very good.
Loved this unique solution!
Loading more items...