about | help | code help+videos | done | prefs |
allAboutStrings
Given a string with at least 3 characters return a list of its 1) length 2) first character 3) last character 4) middle character if it has an odd number of characters, else middle two characters 5) index of 2nd occurrence of the 2nd character of the string in the format '@ index #', 'not found' if the 2nd character does not occur again in the string allAboutStrings('LASA') → [4, 'L', 'A', 'AS', '@ index 3'] allAboutStrings('Computer') → [8, 'C', 'r', 'pu', 'not found'] allAboutStrings('Science') → [7, 'S', 'e', 'e', '@ index 5'] ...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: 100
Copyright Nick Parlante 2017 - privacy