9. Fill with 1..length
You are not logged in.
Input
Goal output
Your output
  • []
    []
    []
  • [5]
    [1]
    [5]
  • [4,4]
    [1,2]
    [4,4]
  • [1,2,3]
    [1,2,3]
    [1,2,3]
  • [7,7,7,7]
    [1,2,3,4]
    [7,7,7,7]
  • [1,2,3,4,5]
    [1,2,3,4,5]
    [1,2,3,4,5]
  • [5,4,3,2,1]
    [1,2,3,4,5]
    [5,4,3,2,1]
  • [0,0,1,1,2,2]
    [1,2,3,4,5,6]
    [0,0,1,1,2,2]
  • [-3,0,7]
    [1,2,3]
    [-3,0,7]
Some tests failed