Galactic Bracket Balancing Equilibrium X68934


Statement
 

pdf   zip

html
Public test cases
  • Input

    (()())
    

    Output

    3 (()-())
    
  • Input

    (((
    

    Output

    0 -(((
    
  • Input

    ((()))
    

    Output

    3 (((-)))
    
  • Input

    ())(()
    

    Output

    3 ())-(()
    
  • Input

    ))
    

    Output

    2 ))-
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    Python