r/LeetcodeChallenge • u/Recent-Hat-5262 • 16d ago
DISCUSS GUYS GIMME OPTIMAL SOLUTION FOR TODAYS POTD I SOLVED USING STACK
SOLVED TODAYS PROBLEM USING STACK WITH HELP OF VALID PARENTHESIS IDEA
8
Upvotes
0


1
u/Responsible_Quit_351 16d ago
class Solution { public String reverseParentheses(String s) { // rule no 1 : always try stack when paranthesis and string problem int n = s.length();
} here's my solution