Most straight forward!!!
Good!
Excellent solution, thanks for also adding the comments with the explanation.
Be carefull with substring as you are introducing a loop in a loop. This is not O(n) anymore.
Loading collection data...
Most straight forward!!!
Good!
Excellent solution, thanks for also adding the comments with the explanation.
Be carefull with substring as you are introducing a loop in a loop.
This is not O(n) anymore.