Search⌘ K
AI Features

Get the Maximum Score

Get the Maximum Score asks you to follow one of two sorted arrays, switching at shared values, to maximize the sum of distinct visited numbers and return it modulo a large prime.

Statement

You are given two sorted arrays of distinct integers, nums1 and nums2.

A ...