Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_zigzag_array solution in Uncategorized category for Zigzag Array by Jon_Red
def create_zigzag(rows:int,cols:int,start:int=1)->[[int]]:
return[[x for x in range(
start+y*cols,cols+start+y*cols
)][::pow(-1,y)]for y in range(rows)]
June 28, 2020