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

 

orion.a.smith@gmail.com apcsa-lists > apcsaListIncreasingLength
prev  |  next  |  chance

Given an ArrayList of Strings, determine and return whether the Strings are in order of non-decreasing length, meaning the length of each String in the input is at least as large as the length of the String before it.


apcsaListIncreasingLength(["a", "abc", "abcd"]) → true
apcsaListIncreasingLength(["a", "abc", "abcd", "ef"]) → false
apcsaListIncreasingLength(["1", "1", "1"]) → true

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

public boolean apcsaListIncreasingLength(ArrayList<String> lst) { }

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: 220

Copyright Nick Parlante 2017 - privacy