摘要: 连接地址:http://blog.csdn.net/sjf0115/article/details/8645991 阅读全文
posted @ 2015-01-14 11:28 pku_smile 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 标题:Compare Version Numbers通过率:14.8%难度:简单Compare two version numbersversion1andversion1.Ifversion1>version2return 1, ifversion1len2 ? len1:len2; 9 ... 阅读全文
posted @ 2015-01-14 11:25 pku_smile 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 标题:Majority Element通过率:33.8%难度:简单Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋... 阅读全文
posted @ 2015-01-14 11:17 pku_smile 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 标题:Pascal's Triangle通过率:30.7%难度:简单GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], ... 阅读全文
posted @ 2015-01-14 10:05 pku_smile 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 标题:Excel Sheet Column Number通过率:39.8%难度:简单Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corr... 阅读全文
posted @ 2015-01-14 10:00 pku_smile 阅读(148) 评论(0) 推荐(0) 编辑