@Red: Any progress?
In addition to the above suggestions, I noted that your assumptions for k == 0 and k == 1 are incorrect. Think about what happens for those cases. Pick small values for n and...
Type: Posts; User: GregBrannon
@Red: Any progress?
In addition to the above suggestions, I noted that your assumptions for k == 0 and k == 1 are incorrect. Think about what happens for those cases. Pick small values for n and...
In future posts:
1. Post code that can be run,
2. Comment your code to describe what is (or should be) happening, and
3. Post sample runs that show or instructions to duplicate the undesired...