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

 

tmhscs@gmail.com strings > string_allMixedUp
prev  |  next  |  chance

string_allMixedUp--These strings are all mixed up. None of the letters except for the first one is in the right place. Luckily, they were all mixed up following a particular pattern. The first letter is in the right place, the second letter is at the end, the third letter is in the second place, and the fourth letter is second to the end. This pattern continues for all the letters in the string. Write a method given a "mixed up" string and return a string that has been corrected.


string_allMixedUp("MONO") → "MOON"
string_allMixedUp("Pormermagr") → "Programmer"
string_allMixedUp("Tmallbo") → "Tomball"

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

public String string_allMixedUp(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

Post-solution available

Copyright Nick Parlante 2017 - privacy