Problem · Simulation

Fantasy Card Duel

MediumZipRecruiterINTERNOA
Examples
01 · Example 1
playerDeckA = [5]
playerDeckB = [2]
return = 1
Example 1 illustration
02 · Example 2
playerDeckA = [1, 2]
playerDeckB = [3, 1]
return = 6
Unfortunately, we dont have access to the video explanation they provided..
Constraints
  • 1 <= playerDeckA.length <= 100
  • 1 <= playerDeckA[i] <= 10
  • More ZipRecruiter problems
    drafts saved locally
    public int fantasyCard(int[] playerDeckA, int[] playerDeckB) {
      // write your code here
    }
    
    playerDeckA[5]
    playerDeckB[2]
    expected1
    sign in to submit