| about | help | code help+videos | done | prefs |
longestPalindrome
Given an array of Strings, return the index of the one that is the longest palindrome. longestPalindrome(["There", "is", "only", "a", "single", "palindrome", "here"]) → 3 longestPalindrome(["There", "are", "no", "palindromes", "here"]) → -1 longestPalindrome(["racecar", "madam", "supercalifragilisticexpialidocious"]) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 299
Copyright Nick Parlante 2017 - privacy