一般来说,应该是循环快一点吧。
题目:https://leetcode-cn.com/problems/lexicographical-numbers/
收起
3ms和1ms只差了2毫秒,估计你多运行几遍递归,也会出现3ms的时候
报告相同问题?