Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I added your text... for final clarity:-) Thanks for the feedback!
This makes it more clear! I think my confusion stemmed from the idea of monopoly currency being mentioned that isn't compatible with fractions.
For final clarity for anyone confused like me:
Add all of the fractional values on an n by n sized board and print the answer as a simplified fraction.
This problem is suddenly more interesting to me now. Thank you for the clarification.
It's not an issue! Rather a question!-)
The sum of the numbers on the chessboard is 1/2 + 1/3 + ..., not the sum of the numerators or of the denominators. Here a number is a rational. Do you understand? If not, ask again.
I've started looking at this one, but I'm having trouble understanding what is being asked.
I've setup a function that will calculate the sum of all of the denominators and all the numerators for an arbitrary n. When I expand to the n = 8 example, the test is not passing. I assume I'm just not understanding what we're supposed to calculate. When you say:
"When all numbers are on the chessboard each in turn we toss a coin. The one who get "head" wins and the other gives him, in dollars, the sum of the numbers on the chessboard"
which numbers do you want summed?
Thanks for the help in advance.