Solution Review: Color Wheel

Sumit Rawal answered on May 23, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Solution Review: Color Wheel

0

Task

Solution

Task

In this challenge, you were provided a primary color and you had to match it to its complementary secondary color.

Solution

Let’s go over the solution step-by-step.

The first thing you had to figure out is that this problem requires a match expression.

Next, you had to figure out the number of cases the match expression would require to cover all the possible scenarios. We had one case for each primary color along with a default case if the input was anything but a primary color. 

Popularity 1/10 Helpfulness 1/10 Language scala
Source: Grepper
Link to this answer
Share Copy Link
Contributed on May 23 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.