@njit
def fill_array(arr):
 head = make_linked_node(0)
 for i in range(1, arr.size):
  head = head.prepend(i)
 c = 0
 while (head is not None):
  arr[c] = head.data
  head = head.next
  c += 1

@ njit def fill_array ( arr ) : head = make_linked_node ( 0 ) for i in range ( 1 , arr . size ) : head = head . prepend ( i ) c = 0 while ( head is not None ) : arr [ c ] = head . data head = head . next c += 1
fills the array with n .