mir1198yusuf's blog

By mir1198yusuf, history, 4 years ago, In English

For the below testcase, what should be the output :

(()())()(())()()())())()((()(()(())()()())((()(())()(()()()()))()(())()(((()())()(()((())()(())(()))

My answer is :

No of substring = 7

length of longest sequence = 18

Can anyone confirm because I feel codeforces test case is wrong here.?

My code : https://codeforces.com/contest/5/submission/79013600

  • Vote: I like it
  • -2
  • Vote: I do not like it

| Write comment?