about | help | code help+videos | done | prefs |
Given a string, return a "rotated right 2" version where the last 2 chars are moved to the start. The string length will be at least 2. right2("Hello") → "loHel" right2("java") → "vaja" right2("Hi") → "Hi" ...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: 136.0
Copyright Nick Parlante 2017 - privacy