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
four loops in worst case instead one...
clever, but super slow. pure overkill
2024 new feature?
how is this best practises? I don't see anything being done the "best" way.
How does this finish in time
Eh sometimes you gotta use it, not here ig. This can be done in O(1) without any loops
This comment is hidden because it contains spoiler information about the solution
words can't describe how I feel after refactoring my code at least four times over 3 days to arrive to pretty much this answer.
this's very clean
i write an O(n) solution. you can refer to it
This comment is hidden because it contains spoiler information about the solution
This is THE way of solving this, thanks for sharing
This comment is hidden because it contains spoiler information about the solution
std::map dict should be const, also as mentioned std::vector v is redundant versus map keys
Loading more items...