We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78299d1 commit ff44a00Copy full SHA for ff44a00
1 file changed
README.md
@@ -1710,7 +1710,9 @@ __Algorithmic Thinking:__
1710
</p>
1711
1712
1713
+
1714
__code Implementation:__ <p>
1715
1716
Step 1: Initialize an empty stack
1717
1718
let stack = [];
@@ -1719,10 +1721,13 @@ Step 1: Initialize an empty stack
1719
1721
1720
1722
Step 3: Check for opening brackets
1723
1724
1725
+```
1726
if (ch == '(' || ch == '{' || ch == '[') {
1727
stack.push(ch); // Push opening bracket onto the stack
1728
}
1729
1730
1731
1732
Step 4: Check for closing brackets
1733
0 commit comments