Create a function that offsets each value in a given string by a given amount.
For instance,
codewheel('hello',1)
should output 'ifmmp'.
The output string should have the same punctuation, spacing, and capitalization as the input, so
codewheel('Hello, World!',3)
should output 'Khoor, Zruog!'.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers30
Suggested Problems
-
Project Euler: Problem 7, Nth prime
1778 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1329 Solvers
-
Construct a string from letters and counts
147 Solvers
-
Sum of first n terms of a harmonic progression
521 Solvers
-
find the surface area of a cube
575 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!