Question: Language Java 1 5 erica [ 0 ] = E . The first question solved by Erica in day 0 was easy E
Language Java
erica The first question solved by Erica in day was easy and Erica's score is
bob The first question solved by Bob in day was easy and Bob's score is also
Erica's and Bob's scores are equal: Tie
Function Description
Complete the function winner in the editor below.
winner has the following parameters: string erican: ericai denotes the difficulty of Erica's problem solved on day
string bobn: bobi denotes the difficulty of Bob's problem solved on day
Returns:
string winnerName: a name of the winner Erica or Bob, or Tie if their scores are equal.
Environment
Test Results
Custom
Search
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
