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

 

barT1


Given an array of Strings, return an array of booleans with true for each String that has a length lower than the next String in the array.


The resulting array of booleans will be one element shorter than the String array because the last element in the String array can't be included (there is nothing to compare it's length too).

barT1(["A", "AB", "ABC", "ABCD"]) → [true, true, true]
barT1(["A", "A", "AB", "A"]) → [false, true, false]
barT1(["Aaron", "Ken", "Gena", "David", "Jason", "Greg"]) → [false, true, true, false, false]

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

public boolean[] barT1(String[] arr) { }

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

Copyright Nick Parlante 2017 - privacy