about | help | code help+videos | done | prefs |
Given a string of positive digits, right shift the digits n times. e.g. if the given str is "1010101010", and n = 6, the result should be "0000001010". n is always within the range. pushRight("111", 1) → "011" pushRight("1", 1) → "0" pushRight("100", 1) → "010" ...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: 130
Copyright Nick Parlante 2017 - privacy