Greater Hackerrank Solution C — Bigger Is
printf("%s\n", str);
// Step 3: Swap pivot with that character swap(&str[i], &str[j]); bigger is greater hackerrank solution c
if (i < 0) printf("no answer\n"); return; printf("%s\n", str); // Step 3: Swap pivot with
// Step 1: Find the pivot for (i = n - 2; i >= 0; i--) if (str[i] < str[i + 1]) break; if (i <
int main() int t; scanf("%d", &t);