about | help | code help+videos | done | prefs |
Given a string and an index, return a string length 2 starting at the given index. If the index is too big or too small to define a string length 2, use the first 2 chars. The string length will be at least 2. twoChar("java", 0) → "ja" twoChar("java", 2) → "va" twoChar("java", 3) → "ja" ...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: 154.0
Copyright Nick Parlante 2017 - privacy