Skip to content

Commit

Permalink
Fix: missing the 3rd condition for the question
Browse files Browse the repository at this point in the history
  • Loading branch information
SkollRyu authored Oct 10, 2023
1 parent 6dfd7f6 commit 16f9dfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutorials/basic-topics/queue-and-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Stack is the data structure The first item that comes in will be the first to go
>
> 1. Open brackets must be closed by the same type of brackets.
> 2. Open brackets must be closed in the correct order.
> 3. Every close bracket has a corresponding open bracket of the same type.
To validate a string of parentheses is valid, we must have a corresponding opening bracket when we see a closing bracket. Lets look at some examples:

Expand Down Expand Up @@ -224,4 +225,4 @@ export const suggestedProblems = [
},
]

<Table title="Suggested Problems" data={suggestedProblems} />
<Table title="Suggested Problems" data={suggestedProblems} />

0 comments on commit 16f9dfa

Please sign in to comment.