Skip to content

Files

Latest commit

7f9e96f · Feb 9, 2025

History

History

1657.determine-if-two-strings-are-close

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 9, 2025
Feb 9, 2025

Complexity Analysis:

  • Time Complexity: O ( n ) . n is the length of input String.
  • Space Complexity: O ( 1 ) . We only use constant size of array. The input of sorting is constant as well. Thus, the total space complexity is O ( 1 ) .