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.
checks for negative numbers
This solution is at least 8 years old....
using var is a bad practice nowdays
This comment is hidden because it contains spoiler information about the solution
let's code and play AoE. it's ok. Good luck
thanks for the explanation!
This comment is hidden because it contains spoiler information about the solution
Could you explain why it has polynomial time complexity and not quadratic O(n^2)?
loll
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 mean it works as you say. Plus, this is common behavior. C and C++ return the same. You'd be adding extra code to handle something that is internally handled for you.
This comment is hidden because it contains spoiler information about the solution
I also thought about this problem.
One solution to deal with it is to remove repeated characters from the original string then test on the new string.
( ͡° ͜ʖ ͡°)
Loading more items...