| 7 | char S[maxN]; |
| 8 | |
| 9 | int main(){ |
| 10 | scanf(" %s", S); |
| 11 | N = (int) strlen(S); |
| 12 | for(int i = 0; i < N; i++) nxt[i] = i; |
| 13 | stable_sort(nxt, nxt+N, [](int a, int b){ |
| 14 | return S[a] < S[b]; |
| 15 | }); |
| 16 | |
| 17 | int ptr = nxt[0]; |
| 18 | while(ptr != 0){ |
| 19 | ptr = nxt[ptr]; |
| 20 | printf("%c", S[ptr]); |
| 21 | } |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected