Ad
  • Custom User Avatar

    Trailing zeroes are not shown? Only digits immediately to the right of the decimal point count ( 2 decimals, not some number of significant figures ).

  • Custom User Avatar
  • Default User Avatar

    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.

  • Default User Avatar

    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.

  • Default User Avatar

    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

  • Default User Avatar

    Shouldnt Fibonacci sequence start with 0? Your test cases all starts with 1. Not big issue just asking.

  • Default User Avatar

    okey got it.

  • Custom User Avatar

    If there are 5 or more courses and all courses has a grade of B or above

    One course has a 'C' there. So, 150 is ok for 'name1' in the first test case.

  • Default User Avatar

    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.

  • Default User Avatar

    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.

  • Custom User Avatar

    Great job, thank you man! :)

  • Custom User Avatar
  • Custom User Avatar

    Good job! Wasn't your fault, my description was bad. :)

  • Default User Avatar

    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.

  • Custom User Avatar

    Do what ever you want to make the kata better. I'm not good in writing descriptions :))

  • Loading more items...