摘要: Given a string, find the longest substring without any repeating characters and return the length of it. The input string is guaranteed to be not null 阅读全文
posted @ 2020-02-20 21:26 xuan_abc 阅读(134) 评论(0) 推荐(0)
摘要: Word “book” can be abbreviated to 4, b3, b2k, etc. Given a string and an abbreviation, return if the string matches the abbreviation. Assumptions: The 阅读全文
posted @ 2020-02-20 11:09 xuan_abc 阅读(266) 评论(0) 推荐(0)
摘要: Given an original string input, and two strings S and T, replace all occurrences of S in input with T. Assumptions input, S and T are not null, S is n 阅读全文
posted @ 2020-02-20 10:00 xuan_abc 阅读(371) 评论(0) 推荐(0)