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

 

combinify


Given an array of Strings, recursively create a String consisting of all the even-indexed Strings concatenated together, followed by all the odd-indexed Strings. Consider index 0 as even. You will need to write a helper method for this problem.


combinify(["a", "b"]) → "ab"
combinify(["a", "b", "c", "d"]) → "acbd"
combinify([]) → ""

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

public String combinify(String[] words) { }

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: 301 Post-solution available

Copyright Nick Parlante 2017 - privacy