6. Set last element to 0
You are not logged in.
Input
Goal output
Your output
  • [5]
    [0]
    [1]
  • [4,4]
    [4,0]
    [2,4]
  • [1,2,3]
    [1,2,0]
    [3,2,3]
  • [7,7,7,7]
    [7,7,7,0]
    [4,7,7,7]
  • [1,2,3,4,5]
    [1,2,3,4,0]
    [5,2,3,4,5]
Some tests failed