Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve resistor-color-duo: map to math #51

Open
SleeplessByte opened this issue Sep 26, 2019 · 0 comments
Open

Improve resistor-color-duo: map to math #51

SleeplessByte opened this issue Sep 26, 2019 · 0 comments

Comments

@SleeplessByte
Copy link
Member

SleeplessByte commented Sep 26, 2019

Describe the improvement:

When an optimal map solution is provided, the analyzer should approve but provide a comment that allows them to continue the path.

Perhaps there is a solution that does not involve type-juggling: the act of creating a 
_string_ of numbers (the digits) and then parsing it back into a number. For example: 
what _value_ does the `4` in the number `42` hold.

You may continue with the next exercise, or try out submitting a more math-y solution 
and continue here.

Which exercise

resistor-color-duo

Additional context

The ResistorColorDuoAnalyzer has a method that checks if an exercise is optimal. There are various ways to branch based on that optimality. As per the commentary above, using a map is approvable but not optimal.

@SleeplessByte SleeplessByte changed the title Path to optimal learning: resistor-color-duo Improve resistor-color-duo Sep 26, 2019
@SleeplessByte SleeplessByte changed the title Improve resistor-color-duo Improve resistor-color-duo: map to math Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant