| about | help | code help+videos | done | prefs |
Given a String with a length of at least 2 return a String created by repeating the last character n times and then the second to last character once. lasN_Fir("Hello", 5) → "oooool" lasN_Fir("XX", 3) → "XXXX" lasN_Fir("boo", 8) → "ooooooooo" ...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