Let us get letter crazy!!
CodeChefOpen on judge ↗
Watson, I am struck at Moriarty's. I will ping you a string S of length K shortly. All characters are lower case English alphabets and distinct. Generate all possible permutations of every string subsequence and have it ready in fancy order. Within the next Q minutes, I will send a number X during every minute. Ping me back the X-th string in the fancy order before I ping you next. If no such stri
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start