[LeetCode] 1678. Goal Parser Interpretation
Python
class Solution:
    def interpret(self, command: str) -> str:
        
        return command.replace("()", "o").replace("(al)", "al")
class Solution:
    def interpret(self, command: str) -> str:
        
        return command.replace("()", "o").replace("(al)", "al")
댓글남기기