20. Valid Parentheses.md#7
Open
X-XsleepZzz wants to merge 3 commits into
Open
Conversation
tshimosake
reviewed
Feb 7, 2025
| @@ -0,0 +1 @@ | |||
| 20. Valid Parentheses | |||
Owner
Author
There was a problem hiding this comment.
まだ完成していないので終わり次第レビュー依頼に投げさせていただきます。
その際はよろしくおねがいいたします
oda
reviewed
Feb 7, 2025
| (https://discord.com/channels/1084280443945353267/1201211204547383386/1202541275115425822) | ||
| 上の用語わからなすぎて調べる。 | ||
| おそらく形式言語理論の概念を用いてこの問題を解釈している? | ||
| うちの学校のカリキュラムにはないが、形式言語理論の勉強はSWEとして必須? |
Owner
Author
There was a problem hiding this comment.
そうだったんですね。余力があれば勉強してみます!
oda
reviewed
Feb 7, 2025
| 2回目3分38 | ||
| 3回目2分48 | ||
|
|
||
| '''python |
oda
reviewed
Feb 7, 2025
| ```python | ||
| class Solution: | ||
| def isValid(self, s: str) -> bool: | ||
| valied_input = ["(",")","{","}","[","]"] |
kzmkt
reviewed
Feb 9, 2025
|
|
||
| https://github.com/yus-yus/leetcode/pull/6 | ||
| かなり勉強になった。 | ||
| 特に問題文にはないが、brackets以外が入力として与えられた場合も考えているのがすごくためになった。 |
There was a problem hiding this comment.
これは凄く大切ですね。
この練習では動くかどうかはそれほど関係ないという話があったと思いますが、実際コード書く時は動くのはスタートラインで、こういう本来の機能以外で考える事の方が多かったりはします。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
20. Valid Parentheses
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.
Every close bracket has a corresponding open bracket of the same type.
次は206. Reverse Linked List