Parenthesis/Brackets Matching using Stack algorithm

前端 未结 30 2714
你的背包
你的背包 2020-11-27 11:39

For example if the parenthesis/brackets is matching in the following:

({})
(()){}()
()

and so on but if the parenthesis/brackets is not mat

30条回答
  •  执笔经年
    2020-11-27 12:15

    Was asked to implement this algorithm at live coding interview, here's my refactored solution in C#:

    Git Tests

提交回复
热议问题