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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!