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.
Trailing zeroes are not shown? Only digits immediately to the right of the decimal point count ( 2 decimals, not some number of significant figures ).
for me it fails in Java.
if I change this: ->
assertEquals("Halifax, Montreal, Toronto, Chicago, Winnipeg, Seattle",
routes.findRoutes(new String[][]{{"Chicago", "Winnipeg"}, {"Halifax", "Montreal"}, {"Montreal", "Toronto"}, {"Toronto", "Chicago"}, {"Winnipeg", "Seattle"}}));
to this: -> assertEquals(Chicago, Winnipeg, Seattle",
routes.findRoutes(new String[][]{{"Chicago", "Winnipeg"}, {"Halifax", "Montreal"}, {"Montreal", "Toronto"}, {"Toronto", "Chicago"}, {"Winnipeg", "Seattle"}}));
it works fine but still it is changed back when pressing submit.
well what I understood is you want A to have most of gold in every possible situation. In your case it would A takes 569, B takes 809, A takes 389 and finally B takes 128 which results in [958, 937] so A has more gold than B condition is filled. I might be wrong so everyone can correct me.
PS: Not in every case you have to take highest number from golds list by A programmer.
Starting with 0 or 1 is a matter of choice - today most people define the sequence's seed values as 0,1, but 1,1 is also valid
Shouldnt Fibonacci sequence start with 0? Your test cases all starts with 1. Not big issue just asking.
okey got it.
One course has a
'C'
there. So, 150 is ok for'name1'
in the first test case.hmm description has wrong inputs and even first test case is wrong 'name1' 150 ['B', 'A', 'A', 'C', 'A', 'A'] = 430(120) + 120(20) + 1*10(10) + additional 20 points = 170 not 150 so name1 should be returned as hacked.
You state we need to round to 2 decimal yet in your test cases you sometimes have 1 decimal sometimes 2 and sometimes none. This was really painful.
Great job, thank you man! :)
done.
Good job! Wasn't your fault, my description was bad. :)
Okey I figured it out was definately my mistake. Thank you for help (didnt realize I didnt need whole bit sequence only 76 :D ) and sorry for marking it as issue I m still new to this site.
Do what ever you want to make the kata better. I'm not good in writing descriptions :))
Loading more items...