Multi-bracket Validation.
-
Write a function called validate brackets
- Arguments: string
- Return: boolean
- representing whether or not the brackets in the string are balanced
-
There are 3 types of brackets:
- Round Brackets : ()
- Square Brackets : []
- Curly Brackets : {}
- Write out problem statement
- looked at pseudoqueue code for help
- create a dictionary of brackets
- check key value pair, return true if there, false if not
- The Big O time is O(n) because iterates over each character once. Space: O(n) because its dependent on input string
