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

 

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

Write a method that "encodes" a word passed in as the string 'original'. To encode the word, make a new "word" by following the pattern seen in the test data. To make the pattern easier to see, the first few test data items shown have digits in their strings to show where each location ends up.


quiz2022_03_23_APSLHL_encodedString("1234567") → "1726354"
quiz2022_03_23_APSLHL_encodedString("12345678") → "18273645"
quiz2022_03_23_APSLHL_encodedString("ABCDEFGHIJKLMNOP") → "APBOCNDMELFKGJHI"

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

public String quiz2022_03_23_APSLHL_encodedString(String original) { }

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

Copyright Nick Parlante 2017 - privacy