id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

zbaharav@kehillah.org 66-sortingprep > getLengthOfLongestString
prev  |  next  |  chance

Given an array of strings, return length of the longest string in the array. (Difficulty Level: 3)


getLengthOfLongestString(["Bill", "Susan", "Steven", "Jean"]) → 6
getLengthOfLongestString(["ab", "bcd", "efgh", "xyz", "oiesg"]) → 5
getLengthOfLongestString(["ITEC", "2120", "Section", "2", "8", "10"]) → 7

...Save, Compile, Run (ctrl-enter)

public int getLengthOfLongestString(String[] sArray){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy