Ad
  • Custom User Avatar

    Not an issue.

  • Default User Avatar

    I can not undestand. Why the fire_drill test
    6 {0,0,0,0}
    5 {0,0,0,0}
    4 {0,0,0,0}
    3 {0,0,0,0}
    2 {0,0,0,0}
    1 {0,0,0,0}
    0 {}
    has the result:
    [0, 6, 5, 4, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 3, 2, 1, 0, 1, 0] with capacity 5.
    Why does the lift stop at 4, 3, 2, 1 floors after he took four people on the fifth floor and another one on the fourth? Shouldn't he then go down to the ground floor to drop them off? I use С++