Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2026/ii/paper-1/3h/c/solution

The ternary merges are , then , then . One code is
Its expected length is

New to topics? Read the docs here!