7.4 Replace and remove - variant 1 - telex encoding

#1

The problem statement constrains a solution to O(1) space. It’s not stated explicitly, but that seems to imply that the original array is already large enough for the telex-encodings of punctuation to fit. (Otherwise, the array would have to be resized, thus exceeding the space constraint.) Is this a correct assumption? Thanks!

0 Likes

#2

Hi @lgtout,

Yes, you are right, this problem we assumed the array has enough space like you said.

1 Like

#3

@tsunghsienlee: Great! Thanks for clarifying!

0 Likes