| about | help | code help+videos | done | prefs |
Given two Strings, str1 and str2, return the one that should come first alphabetically. If they are the same word, return "same". comesFirst("apple", "Banana") → "apple" comesFirst("blue", "blue") → "same" comesFirst("pickle", "orange") → "orange" ...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: 150 Post-solution available
Copyright Nick Parlante 2017 - privacy