about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 210
Copyright Nick Parlante 2017 - privacy