Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
Correctness and Test Cases
Grade Level
Computer Science
HSCS.101 Correctness and Test Cases
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
A compressRuns(text) function encodes repeated characters, so aaabb becomes a3b2. Which tests best check edge cases?
A
only strings with no repeated characters
B
one normal string such as aaabb
C
empty string, one character, no repeated characters, one long run, multiple runs, case-sensitive letters, and digits as input characters if allowed
D
several strings with one long run only
Submit Answer