Question: Implement the missing code, denoted by ellipses. You may not modify the pre - existing code. Given an array of strings, return another array containing

Implement the missing code, denoted by ellipses. You may not modify the pre-existing code.
Given an array of strings, return another array containing all of its longest strings.
Example
For inputArray =["aba"
"aa
"ad"
"aba"], the output should be
solution (inputArray)=["aba",
"vcd"
"aba"].
"vcd",
Input/Output
[execution time limit]4 seconds (js)
[memory limit]1 GB
[input] array.string inputArray

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!