Cody

Problem 43635. Return the amount of palindromes (words) in the string.

For example:

Input:
 s = 'eye story pop dictionary noon enjoy software moon'
Output:
 amount = 3

Test each word by itself, and exclude single-character words.

Solution Stats

12.2% Correct | 87.8% Incorrect
Last Solution submitted on Mar 09, 2020

Problem Comments

Solution Comments