mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-31 14:12:37 +08:00

committed by
Yangshun Tay

parent
df1c15de05
commit
5d9002d786
@ -6,3 +6,4 @@ Stack
|
|||||||
- Write an algorithm to determine if all of the delimiters in an expression are matched and closed.
|
- Write an algorithm to determine if all of the delimiters in an expression are matched and closed.
|
||||||
- E.g. `{ac[bb]}`, `[dklf(df(kl))d]{}` and `{[[[]]]}` are matched. But `{3234[fd` and `{df][d}` are not.
|
- E.g. `{ac[bb]}`, `[dklf(df(kl))d]{}` and `{[[[]]]}` are matched. But `{3234[fd` and `{df][d}` are not.
|
||||||
- [Source](http://blog.gainlo.co/index.php/2016/09/30/uber-interview-question-delimiter-matching/)
|
- [Source](http://blog.gainlo.co/index.php/2016/09/30/uber-interview-question-delimiter-matching/)
|
||||||
|
- Sort a stack in ascending order using an additional stack.
|
||||||
|
Reference in New Issue
Block a user