Skip to content

Files

Latest commit

b47e0fe · Jan 1, 2025

History

History

0006.zigzag-conversion

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 1, 2025
Jan 1, 2025

Complexity Analysis:

  • Time Complexity: O ( n ) . n is the length of s. We iterate s for one time, so the time complexity is O ( n ) .
  • Space Complexity: O ( n ) . We save the data in rows that maximum space is O ( n ) .