about | help | code help+videos | done | prefs |
Given a non-empty string conisting of only lowercase letters, return the letter in the word that is first alphabetically. Hint: this is just like finding the smallest number. If you have two char values, you can compare them using <, >, and so on. (because honestly? chars are just numbers) abc1("cat") → "a" abc1("dog") → "d" abc1("abc") → "a" ...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: 200
Copyright Nick Parlante 2017 - privacy