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 used regex instead but the 0.5 it's more readable and simple, I need to wash my brain or something bc I usually don't see theese kind of solutions
then it's just Hardcoding?
Is this cheating ? xd
what background do you need to make algorithms like this? (besides from algorithms ofc) I want to study but I'm not sure where and how. I did this with recursion but it probably has a big time complexity
where's the dude complaining about using sort(); lol
Doesn't work with [23,12,56,2,80], should be [56,80]
I also don't know, Maybe it's more fast on the sum ? lol
I didn't know that switch case can work like that :o
Very creative, I wish I could think similar solutions involving many methods
lol
does or(|) always go left to right with "g" ? (bc www.|\..+ doesn't touch the domain that also starts with a dot)
what is the "(?:)" for?, I read almost everything about regex except this
idk what to say about this, It's very very specific but it pass the kata xd
Mindblowing, I was thinking on searching the last positive and do the sum with each first positive (yes, ignoring the negatives since they ruin the max sum) but that is very ineficient and also I had to use another function since lastIndexOf returns the last index of a especific element and I wanted a more general request
I understand now, It is Basically the sum of a piece of the array that needs to be the greater (they should put that instead lol)
Loading more items...