cswork / OAOpen practice workspace

ZipRecruiterOA #10

Fantasy Card Duel

Estimated MediumStatement and editorial — judging is being prepared

Topics (AI-labelled)Simulation

(no statement available)

Constraints

  • 1 ≤ playerDeckA.length ≤ 100
  • 1 ≤ playerDeckA[i] ≤ 10

Example 1

Input:

playerDeckA = [5]
playerDeckB = [2]

Output:

1

Explanation:

Example 2

Input:

playerDeckA = [1, 2]
playerDeckB = [3, 1]

Output:

6

Explanation: Unfortunately, we dont have access to the video explanation they provided..

Editorial

Loading solution…