LeetCode: Clear Digits
Problem:
https://leetcode.com/problems/clear-digits/description/
Code:
class Solution:
def clearDigits(self, s: str) -> str:
stack=[]
for ch in s:
if not ch.isdigit():
stack.append(ch)
else:...
is-power-of-two.hashnode.dev2 min read