本题本质和2375.Construct-Smallest-Number-From-DI-String一模一样。
基本思想是将s的开头加上一个“I”,将s切分为若干"IDD..D"的pattern,每个pattern对应的是一段单调递减的序列。保证序列与序列之间不重合即可。
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — LeetCode/Greedy/484.Find-Permutation at master · wisdompeak/LeetCode Expand file tree/ Copy path484.Find-Permutation/Directory actionsMore optionsMore optionsDirectory actionsMore optionsMore options/ Copy path484.Find-Permutation/Folders and files
本题本质和 基本思想是将s的开头加上一个“I”,将s切分为若干"IDD..D"的pattern,每个pattern对应的是一段单调递减的序列。保证序列与序列之间不重合即可。 | ||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||