![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lintcode
Mr.Zou1
这个作者很懒,什么都没留下…
展开
-
lintcode--Expression Expand
题目:Given an expression s includes numbers, letters and brackets. Number represents the number of repetitions inside the brackets(can be a string or another expression).Please expand expression to be原创 2017-06-19 19:02:59 · 844 阅读 · 0 评论 -
lintcode--摊平嵌套的列表
题目:给你一个嵌套的列表,实现一个迭代器将其摊平。一个列表的每个元素可能是整数或者一个列表。 样例 给出列表 [[1,1],2,[1,1]],经过迭代器之后返回 [1,1,2,1,1]。 给出列表 [1,[4,[6]]],经过迭代器之后返回 [1,4,6]。 解答:该题属于使用给定的数据类型和方法,使用queue进行BFS,递归解决问题。 /** * // This is原创 2017-06-19 19:38:11 · 325 阅读 · 0 评论