about | help | code help+videos | done | prefs |
evenXY
Given a string, turn every X in an even index to a Y. E.g., "abxc" turns into "abyc", but "abcx" remains unchanged. evenXY("abxc") → "abyc" evenXY("abcx") → "abcx" evenXY("1x23x") → "1x23y" ...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: 210
Copyright Nick Parlante 2017 - privacy