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

 

tmhscs@gmail.com strings > string_firstNonRepeated
prev  |  next  |  chance

Given a String, return the first non-repeated character. If the word has no unique letters, return the space character.


string_firstNonRepeated("add") → "a"
string_firstNonRepeated("app") → "a"
string_firstNonRepeated("eel") → "l"

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

public char string_firstNonRepeated(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

Post-solution available

Copyright Nick Parlante 2017 - privacy