Created
December 3, 2022 18:56
-
-
Save TangoPJ/efb44601ac5e69ea2986c9a055ac9124 to your computer and use it in GitHub Desktop.
start_function_to_longest_common_prefix_string.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const longestCommonPrefix = (strings) => { | |
if (strings.length === 1) { | |
return strings[0]; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment