the time complexity is bad in both cases...
For simplicity only. In real use it is obvious to use .lower() method. Even additional checks for digits and special charasters.
.lower()
This comment is hidden because it contains spoiler information about the solution
Agreed. This method is fine but I always find myself messing up with whitespaces and punctuation
Loading collection data...
the time complexity is bad in both cases...
For simplicity only. In real use it is obvious to use
.lower()
method. Even additional checks for digits and special charasters.This comment is hidden because it contains spoiler information about the solution
Agreed. This method is fine but I always find myself messing up with whitespaces and punctuation
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution