摘要:
[抄题]: Given a non-empty string s and an abbreviation abbr, return whether the string matches with the given abbreviation. A string such as "word" cont 阅读全文
posted @ 2018-03-26 15:29
苗妙苗
阅读(286)
评论(0)
推荐(0)
摘要:
[抄题]: You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend t 阅读全文
posted @ 2018-03-26 11:27
苗妙苗
阅读(167)
评论(0)
推荐(0)
摘要:
[抄题]: You are given a string representing an attendance record for a student. The record only contains the following three characters: A student could 阅读全文
posted @ 2018-03-26 10:35
苗妙苗
阅读(126)
评论(0)
推荐(0)
摘要:
[抄题]: X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be 阅读全文
posted @ 2018-03-26 09:57
苗妙苗
阅读(181)
评论(0)
推荐(0)
摘要:
[抄题]: Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the s 阅读全文
posted @ 2018-03-26 09:20
苗妙苗
阅读(110)
评论(0)
推荐(0)