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

 

norm.krumpe@muohio.edu homework8 > abc1
prev  |  next  |  chance

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)

char abc1(String word) { }

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

Copyright Nick Parlante 2017 - privacy