Return longest string in 1-D array of strings - MATLAB Cody - MATLAB Central

Problem 55010. Return longest string in 1-D array of strings

Difficulty:Rate
Find the longest string in an array of strings. Return an empty string if the initial array is empty. If there are multiple strings of the same length, return the first one that is the longest.

Solution Stats

56.82% Correct | 43.18% Incorrect
Last Solution submitted on Jan 09, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers22

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page