about | help | code help+videos | done | prefs |
For the given input String, return an output String containing only the (i*num)-indexed characters from the original, in their original sequence. When num is 3 this means index 3, then index 6, then index 9 etc. NOTE that this method will skip index 0, even though 0 is definitely a multiple of num. Thus, the first index to get is actually... num! apcsaStringsGimmeNs("abcdefg", 2) → "ceg" apcsaStringsGimmeNs("aAaAaAa", 4) → "a" apcsaStringsGimmeNs("AaBbCcDd", 3) → "bD" ...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: 200
Copyright Nick Parlante 2017 - privacy