Search⌘ K
AI Features

Solution: Get the Maximum Score

Solution: Get the Maximum Score asks you to follow one of two sorted arrays from its beginning, switching at common values, and return the greatest unique-element sum modulo a large prime.

Statement

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

A valid path is constructed according to the following rules:

  • You start at the index 00 ...