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

 

posLongest


Determinare la posizione della stringa più lunga in un array di stringhe. Se più stringhe hanno lunghezza pari al massimo, si restituisce la posizione della prima stringa.
Se l'array di stringhe è vuoto, si restituisce -1.


posLongest(["cos", "sin"]) → 0
posLongest(["a", "sin"]) → 1
posLongest(["a", "sin", "sin"]) → 1

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

int posLongest(String[] texts) { }

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

Difficulty: 280

Copyright Nick Parlante 2017 - privacy