for this problem https://www.codechef.com/LRNDSA02/problems/ZCO12001

can someone give testcases for which my solution won’t work

https://www.codechef.com/viewsolution/32130369

Hopefully I haven’t messed up again, but it looks like your solution fails on exactly the same case as this guy i.e.

```
10
1 1 1 2 1 1 2 2 2 2
```

Seems like it is to me - why do you think it isn’t? It’s possible I’ve made a mistake.

```
((()(())))
=
()
( )
()
( )
( )
0123456789
```

1 Like

Will the answer to this sequence be:

4 6 10 1 ?

The answer for the test input:

```
10
1 1 1 2 1 1 2 2 2 2
```

is

```
4 6 10 1
```

yes

1 Like