Solution to Nesting by codility

22 Jan

Question: http://codility.com/demo/take-sample-test/nesting

Question Name: Nesting

This question is nearly the same as the previous one, but does not need a stack.

9 Replies to “Solution to Nesting by codility

  1. C# solution:

    [/crayon]

  2. Adding a Java Solution 100/100:

  3. 100% in javascript

  4. To save time, if the length of the string is odd you can return 0 as it’s impossible to create an even number of pairs.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!