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

 

jebbert@volusia.k12.fl.us > smaugEbbertAwesome
prev  |  next  |  chance

Write a method that accepts an array of integers and an array of strings. We will define Mr. Ebbert as being awesome if any of the following conditions occurs: Mr. Ebbert is awesome if the array of strings contains at least one string of length one or more. Mr. Ebbert is awesome if the array of strings is empty or only contains empty strings as long as the array of integers has at least one item in it. Mr. Ebbert is awesome if the array of integers is empty as long as the string array is not empty. Mr. Ebbert is awesome if both arrays are empty. Mr. Ebbert is awesome if there are more elements in the string array than the integer array. Using the above explaination, return true if Mr. Ebbert is awesome or false otherwise.


smaugEbbertAwesome([1, 3, 5], ["this", "that"]) → true
smaugEbbertAwesome([], []) → true
smaugEbbertAwesome([5, 2], [""]) → true

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

public boolean smaugEbbertAwesome(int[] nums, String[] strs) { }

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

Copyright Nick Parlante 2017 - privacy