An RGB color is represented as a "#RRGGBB", consisting of a '#' symbol followed by three color components RR, GG, and BB, where each component consists of two hexadecimal digits.
A shorthand RGB color is a color where each of the three color components consists of two identical hexadecimal characters (such as "#11ee66").
The similarity between two colors color1 and color2 with components
Given a color, return a color. If there are multiple answers, return any of them.
Constraints:
color.length
color[] = ext{'\\#'}
color[] is either a digit or a character in the range ['a', 'f'] for
An RGB color is represented as a "#RRGGBB", consisting of a '#' symbol followed by three color components RR, GG, and BB, where each component consists of two hexadecimal digits.
A shorthand RGB color is a color where each of the three color components consists of two identical hexadecimal characters (such as "#11ee66").
The similarity between two colors color1 and color2 with components
Given a color, return a color. If there are multiple answers, return any of them.
Constraints:
color.length
color[] = ext{'\\#'}
color[] is either a digit or a character in the range ['a', 'f'] for