Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


David Duong
David Duong
513 Points

Change my thinking?

I had lots of trouble with the code challenge. After several Google searches I finally found the answer which made me revisit my logical thinking. I would have thought that coding should have been done as figuring out n in 1...100 would be an odd number I thought it would have been n !\ 2 && n \ 7 but it turns out to be n % 2 = 1 && n % 0. I know I haven't used the remainder operator but I never would have thought to use it in that way to figure out the coding challenge. Is it my way of logical thinking? Do I need to re-frame the way I think of solving problems to understand coding better?