How could one know if price_per_kg should be in float. I finnaly gave up.
What's printed in expected when running test cases in not accurate either.
This comment is hidden because it contains spoiler information about the solution
What's the point of decimal point in 1./?
Good kata. I wonder which one is the better appraoch, using a char array, vs int or long array to hold the digits?
int or long
My code seems to return the expected results, but it fails with:
(compared using ==)
@@ -11,7 +11,7 @@
:transaction_date=>#<Date: 2010-08-21 ((2455430j,0s,0n),+0s,2299161j)>},
- :name=>"[product name not found]",
+ :name=>"product name not found",
- :card_name=>"[card name not found]",
+ :card_name=>"card name not found",
But I don't see any difference in the diff.
Finally done. Thanks to the author, learned a lot about primes.
This could only generate about 4 million.
I solved this. But I'm not sure if I followed the best approach. Is this belong to any specific type of problems? Please let me know if there are any references that worth following.
Yeah I read that. Is (0, 0) at the top left or bottom left?
Isn't (N-1, N-1) the W at the center in the above example?
Sorry I can't seem to figure out what I'm missing :)
@joesmith100 Thanks. Working fine now.