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.
Its not. Very simple bcoz using just a single mehod that returs 0 if negative or an addition result. Very logical and concise 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
This comment is hidden because it contains spoiler information about the solution
A quick rundown of my solution versurs geoffp's:
Please elaborate? I wanna know what you mean
This comment is hidden because it contains spoiler information about the solution
Yes, but the code will never attempt to read it. That statement is in the if-condition, preceded by the statement "i < roman.size() - 1 && (...)". If the previous statement is false, the if-condition is "short-circuited", meaning the second statement is ignored.
In the last i , roman[i+1] is out of index. isn't it?
This is amazing solution
This comment is hidden because it contains spoiler information about the solution
This is a great solution.
The performance difference is negligible between the two
This comment is hidden because it contains spoiler information about the solution
Loading more items...