Maximum Score Path with Prime Jumps Ending in 3
Asked at Uber · Coding Questions · Difficulty: Medium · Last asked Jun 1, 2026
A path moves forward along an integer array, collecting the value at each index it lands on. Each move is either one step or a jump whose length is a prime number ending in the digit 3. Find the path from the first to the last index with the largest total.
Loading the problem…