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

 

jebbert@volusia.k12.fl.us > oct12_2018_SLHL_reverseAndInsertString
prev  |  next  |  chance

Write a recursive method that reverses a string 'str' and inserts the string 'insrt' between each character. Look at the test data for examples. Your method MUST solve the problem recursively!


oct12_2018_SLHL_reverseAndInsertString("", "") → ""
oct12_2018_SLHL_reverseAndInsertString("xyz", "1") → "z1y1x"
oct12_2018_SLHL_reverseAndInsertString("abcde", "XYZ") → "eXYZdXYZcXYZbXYZa"

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

public String oct12_2018_SLHL_reverseAndInsertString(String str, String insrt) { }

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

Copyright Nick Parlante 2017 - privacy