Question: Repeated Letters The function takes two strings and determines which has most repeated letter. Return Neither if both has same amount. You may assume the
Repeated Letters
The function takes two strings and determines which has most repeated letter. Return Neither if both has same amount. You may assume the input string only contains lowercase alphabets.
2.1 Examples
# Input: String s, String t | Output: String
# e.g. s = "noob", t = "tattered" | String t (t repeated more than o)
# e.g. s = "stands", t = "stand" | String s (s is repeated more)
# e.g. s = "book", t = "steve" | String "Neither" (o is repeated same amount as e)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
