Skip to content

Commit

Permalink
stack exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
dhavalsays committed Mar 31, 2020
1 parent 27facbe commit 7c93601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataStructures/5_Stack/5_stack_exercise.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[Solution](https://github.com/codebasics/py/tree/master/DataStructures/5_Stack/Exercise/reverse_string.py)
2. Write a function in python that checks if paranthesis in the string are balanced or now. Possible parantheses are "{}',"()" or "[]". Use [Stack class](https://github.com/codebasics/py/tree/master/DataStructures/5_Stack/5_stack.ipynb) from the tutorial.
2. Write a function in python that checks if paranthesis in the string are balanced or not. Possible parantheses are "{}',"()" or "[]". Use [Stack class](https://github.com/codebasics/py/tree/master/DataStructures/5_Stack/5_stack.ipynb) from the tutorial.
```
is_balanced("({a+b})") --> True
is_balanced("))((a+b}{") --> False
Expand Down

0 comments on commit 7c93601

Please sign in to comment.