Problem Statement
In the finals of the NBA 2019 playoffs the (Golden State) Warriors are playing the (Toronto) Raptors.
A transcript of a game is a sequence of integers and a string of characters. The transcript is obtained as follows: Whenever a team's possession of the ball ends in the team scoring some points, we append the number of points scored to the sequence of integers and we append a character representing the team ('W' for the Warriors, 'R' for the Raptors) to the string of characters.
Note that on each possession a team can score at most four points. (The four-point play occurs when a player scores a field goal and then gets awarded free throw(s) for being fouled while making the shot.)
For example, the sequence {2, 4, 1} and the string "RWW" represent a game in which first the Raptors scored 2 points, then the Warriors scored 4 points, and then the Warriors scored another 1 point.
Teja is rooting for the Warriors.
However, he was busy preparing problems for this SRM and he missed one of the games.
He only has a transcript of the game: the
The transcript of the game is damaged: some values in scores and some (not necessarily the same) characters in team have been erased. In scores the erased values are represented by zeros and in team the erased characters are represented by question marks.
Help Teja determine whether the Warriors could have won the game at the end of the transcript. Return 1 if it is possible and 0 if it isn't.
Definition
- Class:
- NBAFinals
- Method:
- dubsAgain
- Parameters:
- int[], String
- Returns:
- int
- Method signature:
- int dubsAgain(int[] scores, String team)
- (be sure your method is public)
Notes
- For the purpose of this problem, a tie is not a win. You should return 1 only if it is possible that at the end of the transcript the Warriors had strictly more points than the Raptors. See Example #1.
- Remember that in a correct transcript each score must be between 1 and 4, inclusive.
Constraints
- scores will contain between 1 and 100 elements, inclusive.
- Each element of scores will be between 0 and 4, inclusive.
- The length of team will be equal to the number of elements in scores.
- Each character in team will be one of 'W', 'R', and '?'.
Examples
{2, 2, 3, 3, 2, 4, 2}
"RRWWRWR"
Returns: 1
This is a full transcript of a game in which the Warriors scored 3+3+4 = 10 points while the Raptors only scored 2+2+2+2 = 8 points.
{2, 2, 3, 3, 2, 3, 3}
"RRWWRWR"
Returns: 0
This is a transcript of a game that ended in a tie. (Although in NBA the game would continue into overtime in case of a tie, in this problem inputs like this one can still appear. We are asking whether the Warriors could have won at the end of the given transcript. A tie is not a win, so you should return 0.)
{0, 3}
"WR"
Returns: 1
The Warriors scored some unknown number of points and then the Raptors scored a three-pointer. It is still possible that the Warriors won: the erased score could have been a 4.
{3, 0, 0}
"RWR"
Returns: 0
The Warriors cannot have won this game. Remember that each of the erased values must be between 1 and 4, inclusive, so the Raptors have scored at least four points and the Warriors have scored at most four points.
{0, 0, 0, 0}
"????"
Returns: 1
{3, 2, 3, 2}
"?WR?"
Returns: 1
{0, 1, 2, 3, 4}
"R?W?R"
Returns: 1
{2,2}
"RW"
Returns: 0
{2,2,1,1,2,1,1,2,2,1}
"RRRWWRRWWR"
Returns: 0
{2,2,2,1,1,2,2,2,2,1,2,1,1,1,2,1,2,1,1,1,1,2}
"RWRRRRRWWWRWWWRWWWWRWW"
Returns: 1
{1,2,2,1,1,1,1,1,1,1,2,2,1,1,2,2,1,1,1,1,1,2,1,1,2,1,1,1,1,2,2,1,2,2,2,1,1,1,2,2,1,2,2,1}
"WRRWRWWRRWRWWRRRRWWWWWRWWRWRRWRWWRRRWWWRRWWW"
Returns: 1
{1,2,1,2,1,1,2,1,2,1,1,1,2,1,1,2,2,1,2,1,2,2,1,2,2,2,1,1,2,2,1,1,1,2,2,1,2,2,1,1,2,2,2,2,1,2,2,2,1,1,1,1,1,1,1,1,2,2,1,1,2,1,1,1,2,2,2,2,1,2,1,1,2,1,1,2,1,2,1,2,2,2,1,2,1,2,1,1,2,1,1,1,1,2,1}
"WWWWRWRWRWWRRRWRWWWWRWRRWWWWWWWWWRWRRRRWWRRRWRWRRRRRRWRRRRRWWRRRRRRWRWRWRWWWWRWWRWRWRWWRRWRWWRR"
Returns: 0
{2,2,2,2,2,1,1,1,1,1,2,2,2,1,2,2,1,2,2,2,1,1,2,1,1,2,2,2,1,2,2,1,1,1,2,1,2,2,2,1,2,1,1,1,1,1,1,1,1,2,2,2,2,1,2,1,2,2,1,1,1,1,2,1,1,2,2,2,1,2,1,1,2,1,2,1,2,2,2,2,1,1,2,1,1,2,2,2,2,1}
"WWWRRWWRRWWRWRRRRRRWRWWWWWRWRRRRWWWWRRRRWWRRWWWWRRWRRWWRW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,1,2,2,1,1,1,2,2,1,2,1,2,2,1,2,1,1,2,2,1,2,1,1,2,1,1,1,1,1,1,1,2,1,2,2,1,1,1,1,2,1,2,1,1,1,2,2,2,2,2,1,2,1,1,2,1,1,1,2,2,1}
"??????????????????????????????????????????????????????????????????????????????????????"
Returns: 1
{1,1,2,1,1,2,1,2,2,2,1,1,1,1,2,2,1,2,2,2,1,1,2,2,2,1,1,2,2,1,2,1,1,2,1,1,1,1,1,2,1,1,2,1,2,2,1,1,1,1,1,1,1,2,2,2,2,1,2,1,1,2,1,2,2,1,2,1,1,1,1,2,2,1,1,1,2,1,2,1,1,1,2,1,2,1,2}
"???????????????????????????????????????????????????????????????????????????????????????"
Returns: 1
{2,1,2,1,1,2,2,1,1,2,1,2,2,1,1,1,1,2,2,1,2,1,1,2,2,1,1,1,1,1,1,1,2,2,2,1,1,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,1,1,1,1,2,2,2,2,2,1,1,1,1,2,1,1,2,1,2,1,2,2,1,2,2,2,1,2}
"??????????????????????????????????????????????????????????????????????????????????????????"
Returns: 1
{0,1,0,2,1,2,1,1,1,1,0,2,1,1,1,1,1,2,1,0,1,1,1,2,1,2,1,0,2,2,1,1,1,1,2,0,0,1,2,2,2,1,1,2,0,2,2,2,1,1,2,2,0,0,2,0,2,1,1,1,2,2,1,2,1,1,1,1,1,1,0,2,1,0,2,1,0,1,0,2,0,2,2,0,0,2,1,2,2,1,0,1,1,2}
"RRWRRWRRRRRRWRRRRWWRRWRRRRRRWRWWWWRRWRWRRRRWWRRRRWRRRRRWRRWRRWRRRRRWRRRRWWRRRRWRRRRRRRWRRWRWRR"
Returns: 0
{1,1,2,2,1,1,2,2,1,2,1,2,2,2,1,1,2,2,2,1,2,2,2,2,1,2,2,2,1,1,1,1,1,2,0,1,1,2,2,2,0,2,0,0,1,2,1,2,1,1,1,2,1,2,1,0,2,1,0,0,1,1,1,1,1,0,2,2,2,0,1,2,0,1,2,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,0,2,0,0,0,1,2,0,2,1,0,0,2,2,1,0,0,1,2,0,1,2,2,0,0,0,0,1,0,0,2,1,0,1,2,2,0,0,0,0,0,0,1,0}
"R???RR??R?W????RR?R??W?R?W??RRW??R?RWWR?WR????RR?R??W?RR?????WRR????RW??R????W?WW??R?R"
Returns: 1
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
"??????????????????????????????????????????????????????????????????????????????????????"
Returns: 1
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
"?????????????????????????????????????????????????????????????????????????????????????"
Returns: 1
{2,2,2,0,0,0,1,2,0,0,1,2,1,1,2,1,2,0,1,2,1,1,0,1,0,2,1,0,1,2,1,0,1,0,1,1,1,1,2,1,1,0,2,2,2,2,2,2,2,2,0,1,2,2,1,0,2,2,2,0,2,1,0,0,0,0,1,2,2,1,2,1,1,1,0,1,2,0,0,1,0,1,2,1,2,2,0,1,2,1,0,1,2,1,0,1,1}
"?R????WW??R???RRRR?WR?RRRRR?R?RR??R?RW?RW??WWRRWW??RRRW?W?R?WRRRWRWWRR?RW??RWWR?R?RRR?RRWRW?R??R?"
Returns: 1
{2,0,2,0,0,1,2,0,0,2,1,1,1,2,0,2,2,1,2,2,2,2,1,1,2,1,2,2,0,0,2,2,0,1,1,1,2,2,1,0,2,2,2,1,2,0,2,0,2,1,0,1,2,1,2,0,2,1,0,2,2,0,2,2,2,1,1,2,2,2,0,1,2,2,0,2,2,2,2,2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,1,1,2,2,1,1,2,1,0,1,1,1,1,2,1,0,1,1,1,1,1,1,0,2,2,2,0,1,1,2,1,0,2,1,0,2,1,0,1,2,1,2,2,1,0,2,2,1}
"WR??R?RRRRR?RRR?RR?WR??R?RWR???WRRRRRW??RRR???RR???RWR??WWWRR?RW?WRRRWRR?RR?RRRW?RRR?"
Returns: 1
{0,1,1,2,2,0,1,1,2,2,0,2,1,2,2,2,0,2,1,0,1,1,2,1,2,1,1,1,2,0,2,1,0,0,2,0,1,0,0,1,1,0,1,2,2,2,0,1,1,1,2,0,2,1,1,1,2,1,2,2,1,0,1,2,1,1,1,1,2,0,1,2,0,2,1,0,2,1,2,0,1,0,2,2,2,2,1,2,0,1,2}
"???W?R?WR?RR?W?R?RWWRRWWWW?RRWRRWR?RWR?RWRR?WRR??WR??RRR?WW??R?RRR?RRRRRRWR?WR?WWRRRRRRRRW?"
Returns: 1
{1,1}
"RW"
Returns: 0
{1,1}
"R?"
Returns: 0
{2,1}
"R?"
Returns: 0
{2,3}
"R?"
Returns: 1
{3,3,2,0}
"RRWW"
Returns: 0
{3,3,1,0}
"RRWW"
Returns: 0
{3,3,3,0}
"RRWW"
Returns: 1
{3,3,2,0}
"RRW?"
Returns: 0
{4,3,2,0}
"R?WR"
Returns: 0
{3,3,2,0}
"R?WR"
Returns: 1
{3,1,2,0}
"R?WR"
Returns: 0
{0}
"?"
Returns: 1
{0}
"R"
Returns: 0
{0}
"W"
Returns: 1
{3}
"?"
Returns: 1
{2, 2, 3, 3, 2, 4, 2 }
"RRWWRWR"
Returns: 1
{4 }
"W"
Returns: 1
{4, 0, 0, 0 }
"WRRR"
Returns: 1
{2, 4 }
"WR"
Returns: 0
{0, 3 }
"RW"
Returns: 1
{0, 2 }
"?R"
Returns: 1
{0, 4, 3 }
"RWR"
Returns: 0