贡献一道G家的面试题

处理一个字符串,删除里面所有的A,double所有的B

例子,输入 CAABD, 输出是CBBD

要求in space , O (1), no extra memory cost,因为字符串处理变长的空间不算

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s