This comment is hidden because it contains spoiler information about the solution
thank you very much. I finally figured it out
It is a non capturing group, so you can group a set of characters and optionalise them. https://www.stefanjudis.com/today-i-learned/non-capturing-groups-in-regular-expressions/
that doesn't change anything
It's a magic))
Exactly.
then it's just Hardcoding?
No.
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]
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
thank you very much. I finally figured it out
This comment is hidden because it contains spoiler information about the solution
It is a non capturing group, so you can group a set of characters and optionalise them. https://www.stefanjudis.com/today-i-learned/non-capturing-groups-in-regular-expressions/
that doesn't change anything
This comment is hidden because it contains spoiler information about the solution
It's a magic))
This comment is hidden because it contains spoiler information about the solution
Exactly.
then it's just Hardcoding?
No.
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]
Loading more items...