I am preparing for interviews and am trying to understand this problem:
Write a program to track set of text ranges. Start point and end point will be string.
Text range example : [AbA-Ef]
- Aa would fall before this range
- AB would fall inside this range
- etc.
Can someone help me understand how Text range [AbA-Ef]
is defined?
Is
AbA
a start point andEf
an endpoint?I can conceptually understand start point of char
A
, but I do not get start pointAbA
. Is it like number line where charA
,a
,B
,b
,C
,c
fall on the line?It is like regular expression where start point
AbA
imply all the strings that start with prefixAbA
?is it
[AbA]
to[Ef]
?or
{Ab}
+[A-E]
+{f}
?
Thanks in advance.