about | help | code help+videos | done | prefs |
Write a method that accepts a string and a positive integer 'n'. Return a string made up of every 'n'th letter in the original string starting with the 1st letter. quizSLAPHL_P1("open the pod bay doors, Hal", 5) → "otoyra" quizSLAPHL_P1("Will, quite complaining", 3) → "Wlqtcpin" quizSLAPHL_P1("Eight billion ants can't be wrong", 10) → "Eiao" ...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: 270
Copyright Nick Parlante 2017 - privacy