Skip to content

Instantly share code, notes, and snippets.

@TangoPJ
Created December 3, 2022 18:56
Show Gist options
  • Save TangoPJ/efb44601ac5e69ea2986c9a055ac9124 to your computer and use it in GitHub Desktop.
Save TangoPJ/efb44601ac5e69ea2986c9a055ac9124 to your computer and use it in GitHub Desktop.
start_function_to_longest_common_prefix_string.js
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