Stacks in python



Posted : 1 month ago

Use a stack to determine whether or not a string has balanced usage of parenthesis.

Example:

    (),  ()(), (({[]})) - Balanced

    ((), {{{)}],[][]]] - Not balanced

 

Balanced Example:{[]}

Non-Balanced Example: (()

Non balanced Example: ))

 




Files Attached

No files attached



No answers yet