Practice
Extracting String Data
2023/Oct/Nov·Variant 2
EASYString Processing
Input a string, a starting position, and a length. Output the extracted substring, then the entire original string in lowercase.
Input: A string, an integer start position (1-indexed), and an integer length. Output: The substring, then the lowercase string.
Example:
Input: Learning Never Exhausts The Mind
25
8
Output: The Mind
learning never exhausts the mind
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: Past paper example
Inputs: Learning Never Exhausts The Mind, 25, 8
Expected: The Mind
learning never exhausts the mind
Test 2: First word
Inputs: Computer Science, 1, 8
Expected: Computer
computer science
Ctrl+Enter
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade