Posted on

Description

Submission

class Solution {
public:
    int game(vector<int>& guess, vector<int>& answer) {
        return (guess[0] == answer[0]) + (guess[1] == answer[1]) + (guess[2] == answer[2]);
    }
};

Leave a Reply

Your email address will not be published. Required fields are marked *