Strings Flashcards

1
Q

Count if Characters have repeated in o(n) time and o(1) space

A

Use integer and use bit operations to set the bit as only 26 characters are available

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Avoid using substring if possible

A

Whenever you use substring, it might be counted as o(n^2) solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly