摘要: 原题网址:https://www.lintcode.com/problem/space-replacement/description 描述 设计一种方法,将一个字符串中的所有空格替换成 %20 。你可以假设该字符串有足够的空间来加入新的字符,且你得到的是“真实的”字符长度。 你的程序还需要返回被替 阅读全文
posted @ 2018-06-16 15:29 eeeeeeee鹅 阅读(184) 评论(0) 推荐(0)
摘要: 原题网址:https://www.lintcode.com/problem/string-permutation/description 描述 给定两个字符串,请设计一个方法来判定其中一个字符串是否为另一个字符串的置换。 置换的意思是,通过改变顺序可以使得两个字符串相等。 描述 描述 给定两个字符串 阅读全文
posted @ 2018-06-16 14:30 eeeeeeee鹅 阅读(325) 评论(0) 推荐(0)