Skip to content

Implement armstrong numbers#285

Merged
arcuru merged 6 commits intoexercism:masterfrom
smuroff:implement_armstrong_numbers
Jun 4, 2019
Merged

Implement armstrong numbers#285
arcuru merged 6 commits intoexercism:masterfrom
smuroff:implement_armstrong_numbers

Conversation

@smuroff
Copy link
Copy Markdown
Contributor

@smuroff smuroff commented May 24, 2019

Hi!

Ported armstrong-numbers exercise to C++.

Copy link
Copy Markdown
Contributor

@arcuru arcuru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for linking to the problem-specifications. That is really helpful, I should probably add that to the README.

Your example solution is interesting, and I mean that in a good way. It's not what I would have done, and if this were a real codebase I would probably suggest that you remove the static_cast<bool> trick in favor of explicit if checks so it's clearer to future readers, but it is pretty neat. (To be clear, I'm NOT asking you to change it, just commenting on it.)

Comment thread config.json Outdated
Comment thread exercises/armstrong-numbers/armstrong_numbers_test.cpp
Comment thread exercises/armstrong-numbers/example.h Outdated
Comment thread exercises/armstrong-numbers/example.h Outdated
Comment thread exercises/armstrong-numbers/armstrong_numbers_test.cpp Outdated
Comment thread exercises/armstrong-numbers/CMakeLists.txt
@smuroff
Copy link
Copy Markdown
Contributor Author

smuroff commented Jun 3, 2019

@patricksjackson thank you for your time! I've made changes based on your suggestions.
P.S. Good proposal for make example solutions as clear as we can for future students Note it for self for my next PRs ;)

@smuroff smuroff force-pushed the implement_armstrong_numbers branch 2 times, most recently from 6220271 to ea83bae Compare June 3, 2019 15:37
@smuroff smuroff force-pushed the implement_armstrong_numbers branch from ea83bae to 394cb2e Compare June 3, 2019 15:41
@arcuru arcuru merged commit da27462 into exercism:master Jun 4, 2019
@smuroff smuroff deleted the implement_armstrong_numbers branch June 4, 2019 07:24
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

Successfully merging this pull request may close these issues.

2 participants