LintCode_Tencent考题(简单->中等->困难)
解压字符串
输入 : “HG[3|B[2|CA]]F”
输出 : “HGBCACABCACABCACAF”
解释 : HG[3|B[2|CA]]F −−> HG[3|BCACA]F −−> HGBCACABCACABCACAF
class Solution:
"""
@param Message: the string xiao Q sent to xiao A.
@return: the string after decompress
"""
.
原创
2021-04-02 18:35:07 ·
112 阅读 ·
1 评论