# You will get a string s which consisting of lowercase letters a-z, left parentheses '(' and right parentheses ')'. # Your task is to remove as few parentheses as you can so that the parentheses in s ...
// Time: O(C(n, c)), try out all possible substrings with the minimum c deletion. // Space: O(c), the depth is at most c, and it costs n at each depth ...
現在ITエンジニアとして働いていますが、コーディング・アルゴリズム力をもっと鍛えたいと思い、LeetCodeで学んだ内容をメモ的にアウトプットしています。 また、海外や外資のコーディングテスト対策としてもLeetCodeは有用らしく、海外でのキャリアに ...