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

grains: note regarding using bitwise operations #431

Closed
robphoenix opened this issue Jan 5, 2017 · 2 comments
Closed

grains: note regarding using bitwise operations #431

robphoenix opened this issue Jan 5, 2017 · 2 comments

Comments

@robphoenix
Copy link
Contributor

There are two approaches to this problem, bitwise operations and using math.Pow().

Maybe a note could be added to the test file about taking a bitwise approach, with some links to what bitwise operations are. In a similar way to the way the house exercise suggests the use of recursion but allows a simpler approach.

Then, should the difficulty rating in the config.json file stay with the simpler approach, or the more challenging approach?

@petertseng
Copy link
Member

It may be good to ask the maintainers of other tracks as well, to see what their experience is with this. My guess is that we should try to guess what a "typical" student would do. I know that being human our guesses are prone to be fallible, but we can always adjust if we find out a guess is wrong.

@robphoenix
Copy link
Contributor Author

OK, that sounds good, I think I'll open up an issue in discussions to get some more feedback on this. And I'll have a look into adding something to grains about the potential for bitwise operators. It's a topic I personally don't understand yet, and I feel may provide a good introduction for others in the same boat. I'll submit a PR, let me know what you think?

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

2 participants