Created
September 13, 2019 12:56
-
-
Save firemanxbr/3ce9313518fc556ec38cf169eccad9fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write a function that checks an expression has matching brackets and returns true if it does and false otherwise. | |
e.g. | |
'The is a (full) sentence.' -> True | |
'(x + y)/ 4' -> True | |
'(x + y / 4' -> False | |
'((2 + 3) * (5 + 7))' -> True | |
'((2 + 3) * (5 + 7)' -> False |
apahim
commented
Sep 13, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment