摘要: 1 class Solution { 2 public: 3 int majorityElement(vector &num) { 4 int candidate = num[0]; 5 int count = 1; 6 int len = ... 阅读全文
posted @ 2015-04-19 23:11 卖程序的小歪 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution { 2 private: 3 char tbl[256]; 4 public: 5 vector findRepeatedDnaSequences(string s) { 6 vector res; 7 8 ... 阅读全文
posted @ 2015-04-19 22:17 卖程序的小歪 阅读(149) 评论(0) 推荐(0) 编辑