learning icon indicating copy to clipboard operation
learning copied to clipboard

docs/algorithms/algs/009/

Open utterances-bot opened this issue 4 years ago • 2 comments

第 009 期(2021.12.9) | Learning

题目描述 # 给定一个用字符串表示的整数的嵌套列表,实现一个解析它的语法分析器。 列表中的每个元素只可能是整数或整数嵌套列表 提示:你可以假定这些字符串都是格式良好的: 字符串非空,字符串不包含空格,字符串只包含数字0-9、[、-、,、] 示例 1 # 输入: s = “324” 输出: 324 提示: 你应该返回一个 NestedInteger

https://talkgo.dev/docs/algorithms/algs/009/

utterances-bot avatar Dec 13 '21 13:12 utterances-bot

抱歉,题目都没看懂。题目给的例子像是原样不动的输出、、、

supermario1990 avatar Dec 13 '21 13:12 supermario1990

@supermario1990 输入是string类型,解析为一个多维数组。

dowell2020 avatar Dec 21 '21 09:12 dowell2020