- You do not know the length of the input string
- You can read each character of the input string only once (I think that the implication of this constraint along with the previous should be clear to everyone)
- You have to employ constant space
Everything about algorithms and algorithms for everything.
0 Comments:
Post a Comment