Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int f(string s){int m=0,w=0;foreach(char c in s){if(c=='[')w++;if(c==']')w--;if(w>m)m=w;}return m;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement