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


Warmup-1 > missingChar
prev  |  next  |  chance

Given a non-empty string and an int n, return a new string where the char at index n has been removed. The value of n will be a valid index of a char in the original string (i.e. n will be in the range 0..str.length()-1 inclusive).

missingChar("kitten", 1) → "ktten"
missingChar("kitten", 0) → "itten"
missingChar("kitten", 4) → "kittn"

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

public String missingChar(String str, int n) { }

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

Copyright Nick Parlante 2017 - privacy