Here is my code:
I’m very sure that we don’t need those if statements at the start. If the string is empty or of length 1 then it will still return true. This method is much more compact also. Please share your opinions on it though
Here is my code:
I’m very sure that we don’t need those if statements at the start. If the string is empty or of length 1 then it will still return true. This method is much more compact also. Please share your opinions on it though