Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. It contains solutions in various languages such as C++, Python and Java.
Is your feature request related to a problem? Please describe.
The RPS world championship is here. Here two players A and B play the game. You need to determine who wins.
Both players can choose moves from the set {R,P,S}.
The game is a draw if both players choose the same item.
The winning rules of RPS are given below:
Rock crushes scissor
Scissor cuts paper
Paper envelops rock
Example 1:
Input:
S = "RR"
Output: DRAW
Explanation: Both A and B chooses a Rock.
Hence, it's a draw.
Do you want to work on it
I would like to code it as a gssoc participant 2021
Is your feature request related to a problem? Please describe.
The RPS world championship is here. Here two players A and B play the game. You need to determine who wins. Both players can choose moves from the set {R,P,S}. The game is a draw if both players choose the same item. The winning rules of RPS are given below:
Rock crushes scissor Scissor cuts paper Paper envelops rock
Example 1:
Input: S = "RR" Output: DRAW Explanation: Both A and B chooses a Rock. Hence, it's a draw.
Do you want to work on it I would like to code it as a gssoc participant 2021