Check if string is a palindrome ignoring punctuation
Strings & String Manipulation
Given a string `s`, return `True` if it is a palindrome, `False` otherwise.
// EXAMPLES
Example 1:
Input:
Input: racecarOutput:
TrueExplanation: Result for example 1 of Check if string is a palindrome ignoring punctuation.
Example 2:
Input:
Input: helloOutput:
FalseExplanation: Result for example 2 of Check if string is a palindrome ignoring punctuation.
// CONSTRAINTS
1 <= len(input) <= 10^5Time Complexity target: O(N) or O(N log N)Space Complexity target: O(1) or O(N)Evaluated against 100 test cases.
solution.py