Question
Sort the letters in one word by the order they occur in another in linear time.
Solution
This
text
is
used
to
stop
you
from
looking
at
the
answer
immediately
The answer is counting sort.
Sort the letters in one word by the order they occur in another in linear time.
This
text
is
used
to
stop
you
from
looking
at
the
answer
immediately
The answer is counting sort.