Bug Report for https://neetcode.io/problems/dota2-senate
Example 1:
Input: senate = "RRDDD"
Output: "Radiant"
Explanation:
The first 'R' takes the rights of the first 'D'.
THe second 'R' takes the rights of the second 'D'.
The next two 'D's have lost their rights.
The last 'D' takes the rights of the first 'R'.
The last remaining 'R' takes the rights of the last 'D'.
As only 'R' is left, he announces the victory.
The explaination does not match the example.
Bug Report for https://neetcode.io/problems/dota2-senate
Example 1:
Input: senate = "RRDDD"
Output: "Radiant"
Explanation:
The first 'R' takes the rights of the first 'D'.
THe second 'R' takes the rights of the second 'D'.
The next two 'D's have lost their rights.
The last 'D' takes the rights of the first 'R'.
The last remaining 'R' takes the rights of the last 'D'.
As only 'R' is left, he announces the victory.
The explaination does not match the example.