for this problem CodeChef: Practical coding for everyone

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

CodeChef: Practical coding for everyone

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