http://www.1point3acres.com/bbs/thread-190801-1-1.html
input : abbaba4x[a]bb3x[abaa2x[bab]]
output : abbabaaaaabbabaababbababaababbababaababbab
. 涓€浜�-涓夊垎-鍦帮紝鐙鍙戝竷
之前好像看过类似的面经,谢谢地里的同胞。就用了stack就可以了把不是‘]’的push,遇见']'就开始pop, 并且保存直到'['然后再看要重复几次再扔进栈里这么多次, 说了思路那边都没有回应
https://moonstonelin.wordpress.com/2016/06/08/decompressionstring/ -- don't work
input : abbaba4x[a]bb3x[abaa2x[bab]]
output : abbabaaaaabbabaababbababaababbababaababbab
. 涓€浜�-涓夊垎-鍦帮紝鐙鍙戝竷
之前好像看过类似的面经,谢谢地里的同胞。就用了stack就可以了把不是‘]’的push,遇见']'就开始pop, 并且保存直到'['然后再看要重复几次再扔进栈里这么多次, 说了思路那边都没有回应
https://moonstonelin.wordpress.com/2016/06/08/decompressionstring/ -- don't work