上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 77 下一页
摘要: [抄题]: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For exampl 阅读全文
posted @ 2018-04-14 21:48 苗妙苗 阅读(96) 评论(0) 推荐(0)
摘要: [抄题]: Given a string s and a list of strings dict, you need to add a closed pair of bold tag <b> and </b> to wrap the substrings in s that exist in di 阅读全文
posted @ 2018-03-27 14:55 苗妙苗 阅读(140) 评论(0) 推荐(0)
摘要: [抄题]: 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 苗妙苗 阅读(285) 评论(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 苗妙苗 阅读(109) 评论(0) 推荐(0)
摘要: [抄题]: Given an array of characters, compress it in-place. The length after compression must always be smaller than or equal to the original array. Eve 阅读全文
posted @ 2018-03-25 10:04 苗妙苗 阅读(126) 评论(0) 推荐(0)
摘要: [抄题]: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when 阅读全文
posted @ 2018-03-24 22:30 苗妙苗 阅读(120) 评论(0) 推荐(0)
摘要: [抄题]: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问题]: [一句话思路]: 两个单词的话,就是看谁长 [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异常情况(不合法不合理的输入): 阅读全文
posted @ 2018-03-24 22:07 苗妙苗 阅读(100) 评论(0) 推荐(0)
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 77 下一页