代码: 两个栈 一个存数字 一个存字符串 class Solution {public String decodeString(String s) {Deque<String> stack2 = new LinkedList<>();Deque<Integer> stack1 = new LinkedList<>();int n = s.length();StringBuffer res =
题目链接: https://leetcode.com/problems/decode-string/ 点击打开链接 题目要求: Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside
394. Decode String 题意: Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k t