Search⌘ K
AI Features

Get the Maximum Score

Get the Maximum Score asks you to choose a path through two sorted arrays, switching at common values to maximize the sum of unique visited elements modulo a large prime.

Statement

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