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.
Because there's no need to create another copy of
str
.string str : is a fixed, read-only string stored in memory. You cannot modify it. so it is more correct and safer to be (const) char[]
...for what reason exactly?
Maths are much better for performance than just bruteforce.
Work smarter, not harder.
huuuuuuuuuuuhh i still didnt learn pascal triangle (11G) and when i see solutions like this i feel like that i overthink stuff, what should i do?
This comment is hidden because it contains spoiler information about the solution
plz can u explain why u wrote it like that?
like how it came to u to think about it
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I will unmute you tomorrow.
This comment has been reported as abusive
Use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
#include <algorithm'> is not necessary here since the function used is part of the string library, not the algorithm library.
Loading more items...