GoalScope — rearrange_bigger (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
<code>↵ def rearrange_bigger(n):↵ """Rearranges the digits of n to form the next bigger number."""↵ s = list(str(n))↵ i = len(s) - 2 while i >= 0 and s[i] >= s[i + 1]:↵ i -= 1 if i == -1:↵ return -1 j = len(s) - 1 while s[j] <= s[i]:↵ j -= 1 s[i], s[j] = s[j], s[i]↵ s[i + 1:] = reversed(s[i + 1:])↵ return int(''.join(s))↵ </code>