about | help | code help+videos | done | prefs |
rotateStringBy1
Given a string, return a new string that has each character shifted up by one ASCII character value. e.g. A->B x->y. You can convert a char to ascii: (int)'a' -> 97 You can convert back: (char)98 -> 'b' rotateStringBy1("ABCXYZnml") → "BCDYZ[onm" rotateStringBy1("what!") → "xibu\"" rotateStringBy1("abc123XYZ") → "bcd234YZ[" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy