Back to problems

Palindrome Warmup + Two-Task Worker Scheduling

Algorithm · Two Sigma · Medium

Requirements Complete or discuss these three tasks in order: Implement a check that determines whether a supplied number reads identically from left to right and right to left. For a given number K, produce the smallest palindrome strictly larger than K. Discuss how to assign 2n workers to two tasks so that the overall time is as small as possible. Before proposing an algorithm, clarify the missing details of the scheduling model and objective. For the coding portions, use…

Checking your access…