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

 

zbaharav@kehillah.org > interleave
prev  |  next  |  chance

Given two strings, interleave their characters into an alternating string. For example, interleaving the strings "abc" and "xyz" would return "axbycz". Any extra elements are added to the end (i.e., interleaving "abcde" and "xyz" would give "axbyczde".


interleave("bgcugs", "i hnu") → "big chungus"
interleave("ac", "ps") → "apcs"
interleave("123456789", "abc") → "1a2b3c456789"

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

public String interleave(String a, String b){ }

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

Copyright Nick Parlante 2017 - privacy