Compare the Triplets

  • + 0 comments

    To solve this problem, we need to compare the corresponding elements of Alice's and Bob's rating arrays. For each element in the arrays, we follow these rules.

    • If Alice's score (a[i]) is greater than Bob's score (b[i]), Alice gets 1 point.
    • If Alice's score is less than Bob's, Bob gets 1 point.
    • If their scores are equal, no points are awarded.