There are '0' to '9'. You are given a string rings of length
The string rings is formatted in
The character at rings[] describes the color of the 'R' (red), 'G' (green), or 'B' (blue).
The character at rings[] describes the rod label where the '0' and '9'.
Return the total number of rods that have all
Constraints:
rings.length
rings[i] where i is even is either 'R', 'G', or 'B' (
rings[i] where i is odd is a digit from '0' to '9' (
There are '0' to '9'. You are given a string rings of length
The string rings is formatted in
The character at rings[] describes the color of the 'R' (red), 'G' (green), or 'B' (blue).
The character at rings[] describes the rod label where the '0' and '9'.
Return the total number of rods that have all
Constraints:
rings.length
rings[i] where i is even is either 'R', 'G', or 'B' (
rings[i] where i is odd is a digit from '0' to '9' (