Ad
  • Custom User Avatar

    Bringing accuracy to:

    Simple random tests (10 of 10 statements)
    Medium random tests (18 of 20 statements)
    Hard random tests (100 of 100 statements)

    Can't figure out what's wrong.
    What a challenge!!!

  • Custom User Avatar

    May be i choosed strange way to solve this task: iterate from first day to last day, remove values less than day from input array. But i can't pass medium tests and 2nd basic third REALTIME day in a row :) Yep...I red how to round in description and comments, but still can't understand how to do it correct...I'm using math.ceil()

    2nd basic test. 10nd day
    62.00000000000001 rounding to 63. But in correct result 62...why???

  • Custom User Avatar

    Nope I meant this part

    person = [7, 7, 7, 7, 1, 1, 2, 4, 5, 6]
    house_price = 100
    
    result = calculate_cost_per_person(person, house_price) 
    # result == {1: 10, 2: 23, 4: 52, 5: 69, 6: 89, 7: 114}
    

    As translations might be added in future, the terms used should be generalized (better remove function signatures of specific languages and replace naming variables with pure words like house price

  • Custom User Avatar

    Description should be language-agnostic (changing language specific blocks to general examples)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution