about | help | code help+videos | done | prefs |
Given an input String with multiple words separated by spaces, return a String with the first word repeated twice, separated by a space. Precondition: the location of the first space character is greater than 0. HINT The first word is everything before the first space.apcsaStringsBabyTalk("stop in the name of the law") → "stop stop" apcsaStringsBabyTalk("My good fellows") → "My My" apcsaStringsBabyTalk("La la land") → "La La" ...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: 150
Copyright Nick Parlante 2017 - privacy