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

 

amjadm@miamioh.edu assignment3part1 > seperateChars
prev  |  next  |  chance

Given a string, return a version where all characters between [a-m] moved to the front and are separated "|" from other characters. However, if there are more than one occurrence of a character, only one of them needs to be kept. For instance: if the given string is "refrigerator", the result should be "efiga|rto"


seperateChars("water") → "ae|wtr"
seperateChars("refrigerator") → "efiga|rto"
seperateChars("") → "|"

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

public String seperateChars(String str) { }

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

Copyright Nick Parlante 2017 - privacy