about | help | code help+videos | done | prefs |
Given a string, take the first 2 chars and return the string with the 2 chars added at both the front and back, so "kitten" yields"kikittenki". If the string length is less than 2, use whatever chars are there. front22("kitten") → "kikittenki" front22("Ha") → "HaHaHa" front22("abc") → "ababcab" ...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: 142.0
Copyright Nick Parlante 2017 - privacy