Search posts, tags, users, and pages
Amit singh
class Solution { public int longestValidParentheses(String s) { int open = 0, close = 0, maxLen = 0; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (c == '(') { open++; ...
No responses yet.