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.
it can be improved vis intilaize
outside the loop
nice shot!
This approach has a space complexity of O(n). There is a solution in O(1) though. Definitely not best practice.
π₯·πΏ's js trying his best to make the shortest line of code possible atp ππ
Good Code.
no
is there any difference between ++i and i++ in this case?
While unneeded that is just how some of our brains think about it and it does make the code readable.
This comment is hidden because it contains spoiler information about the solution
can anyone please explain how it work??
Current state of C++ initial solution setup compiles correctly, closing!
The absolute value of positive numbers and zero is that number itself, and the C++ compilers automaticly convert -0 to 0.
whats istringstream and getLine and what do they do exactly?
also whats the use of the variable Token?
you could also use a switch statement instead of those ifs
Your explanation is easy to understand. I didn't know this trick before. Thank you for clarifying it.
Loading more items...