about | help | code help+videos | done | prefs |
Given a string of digits, right shift the digits n times. For instance: if str="11234321", and n = 2, the result should be "00112343". We can assume n is always within the range. rightShift("111", 1) → "011" rightShift("1", 1) → "0" rightShift("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