about | help | code help+videos | done | prefs |
Given a string and two integers, return that portion of the string between those two indices (including the letters at those indices). Assume that the first index is less than or equal to the second. Also assume that the indices are valid and not out-of-bounds. portion("window", 1, 2) → "in" portion("ceiling", 2, 5) → "ilin" portion("door", 0, 0) → "d" ...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: 120
Copyright Nick Parlante 2017 - privacy