Describe how you would implement a function that checks whether a given string has balanced parentheses, including edge cases and time complexity.
Treat characters other than parentheses as ignored. An empty non-NULL string is balanced, while a NULL string is not.
input_id, input_string, and is_balanced.input_id ascending.| Column | Type | Description |
|---|---|---|
| input_idPK | INT | Unique identifier for the input string |
| input_string | TEXT | String to evaluate for balanced parentheses |