about | help | code help+videos | done | prefs |
Given a string str and a boolean value odd, create a new string and change all characters located at odd indices to uppercase and characters located at even indices to lowercase, if the parameter odd is true. changeOddChars("ab", true) → "aB" changeOddChars("aaaaa", true) → "aAaAa" changeOddChars("ABcsde", true) → "aBcSdE" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 110
Copyright Nick Parlante 2017 - privacy