FastPrepFastPrep
Problem Brief

Fantasy Card Duel

INTERNOA

1Example 1

Input
playerDeckA = [5], playerDeckB = [2]
Output
1
Explanation
Example 1 illustration

2Example 2

Input
playerDeckA = [1, 2], playerDeckB = [3, 1]
Output
6
Explanation
Unfortunately, we dont have access to the video explanation they provided..

Constraints

Limits and guarantees your solution can rely on.

  • 1 <= playerDeckA.length <= 100
  • 1 <= playerDeckA[i] <= 10
  • public int fantasyCard(int[] playerDeckA, int[] playerDeckB) {
      // write your code here
    }
    
    Input

    playerDeckA

    [5]

    playerDeckB

    [2]

    Output

    1

    Sign in to submit your solution.