Skip to content

Files

Latest commit

 

History

History

14. Longest Common Prefix

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Longest Common Prefix

Attempts:

# Time Complexity Space Complexity Description Submission Runtime avg (4 submissions)
1 O(n^2) O(n^2) Brute force Submission 42.75 ms
2 O(nlogn) O(n) Sort and compare 1st and last Submission 43 ms