FastPrepMatch Outcomes
Problems/Match Outcomes

Match Outcomes

Adobe logoAdobe● MediumNEW GRADOA

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in an Adobe online assessment for new grads. The report gives the game rules and confirms the second example. We added limits that keep the values positive, and we use a 64-bit score difference.

Our version is about 99% the same as the reported question.

Two players start with scores of zero and alternate turns, with the first player moving first. On each turn, remove the first number from numSeq and add it to the current player's score. If the removed number is even, reverse the remaining sequence.

After all numbers are removed, return firstScore - secondScore.

Function

matchOutcome(numSeq: int[]) → long

Examples

Example 1

numSeq = [3,6,2,3,5]return = 1

The removed values are 3,6,5,3,2. The first player scores 3+5+2=10; the second scores 6+3=9. Return 1.

Example 2

numSeq = [2,1,4,3]return = 2

The removed values are 2,3,4,1. The first player scores 6 and the second scores 4, so the difference is 2.

Constraints

  • For this exercise, assume 1 <= numSeq.length <= 100000.
  • For this exercise, assume 1 <= numSeq[i] <= 10^9.

Source note: Original OA task images and any included source example. The practice contract follows the rules stated in the problem and source note.

More Adobe Online Assessment questions

  • Rotate an Array In PlaceOA · PHONE SCREEN · Seen Aug 2026
  • Top-Funded Villages and ProjectsOA · Seen Aug 2026
  • Count Parent Nodes With a Target SumOA · Seen Aug 2026
  • Largest Binary Number by ConcatenationOA · Seen Aug 2026
  • Count Events by CategoryOA · Seen Aug 2026
  • Graph M-ColoringOA · Seen Aug 2026
  • Hall of Shifting TilesOA · Seen Aug 2026
  • K-th Ancestor Subtree Preorder QueryOA · Seen Aug 2026
  • Maze ReachabilityOA · Seen Aug 2026
  • Minimum Numeric Code TransformationOA · Seen Aug 2026

Similar questions at other companies

  • Rotate the Box and Drop the StonesZipRecruiter · OAZipRecruiter interview questions
  • Catch Fish with Reusable BaitsSusquehanna International Group (SIG) · OASusquehanna International Group (SIG) interview questions
  • Collect Branches for a Bird NestVisa · OAVisa interview questions
  • Score Difference When Even Picks Reverse the ListMicrosoft · OAMicrosoft interview questions
  • Configuration SystemPostman · OAPostman interview questions
  • Candy Crush Grid Matching and GravityRoblox · PHONE SCREEN · ONSITE INTERVIEWRoblox interview questions
  • Add Signed Character ArraysByteDance · PHONE SCREENByteDance interview questions
  • Nested List Iterator with RemoveAirbnb · PHONE SCREENAirbnb interview questions
  • Sum Two Piecewise-Constant Time SeriesGoogle · ONSITE INTERVIEWGoogle interview questions
  • DMA Stream DistributionEtched · PHONE SCREEN

Adobe interview experiences

  • Adobe Web, QA, DevOps, ML Roles: 13 Experiences (Part 3 of 3)
  • Adobe SWE Interviews, Level Unknown: 25 Experiences (Part 2 of 3)
  • Adobe Interviews, Level Unknown: 38 Experiences (Part 1 of 3)
  • Adobe New Grad MTS Interview Questions: 7 Experiences
  • Adobe ML/Research Intern Interviews: 12 Experiences (Part 4 of 4)
  • Adobe Product Intern Interviews: 15 Experiences (Part 3 of 4)
All Adobe interview questionsSee Adobe hiring insights
Saved
class Solution {
    public long matchOutcome(int[] numSeq) {
        // Write your solution here.
    }

}
Checking account…