![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
刷题
文章平均质量分 87
sloanqin
互相交流,共同进步;方向正确,坚持不懈
展开
-
leetcode--Two Sum--无序关联容器--hash map
1. Two Sum My Submissions Question Editorial Solution Total Accepted: 212598 Total Submissions: 943550 Difficulty: Easy Given an array of integers, return indices of the two numbe原创 2016-04-06 10:58:11 · 585 阅读 · 0 评论 -
leetcode--Add Two Numbers--链表
【说明】:这题麻烦在于leetcode上的输入方式,使得这题无法在本机调试,容易犯错误;其他的没什么; 2. Add Two Numbers My Submissions Question Editorial Solution Total Accepted: 133639 Total Submissions: 587845 Difficulty: Medium原创 2016-04-06 13:11:49 · 596 阅读 · 0 评论 -
leetcode--最长非重复子序列--O(n)--基于队列
3. Longest Substring Without Repeating Characters My Submissions Question Editorial Solution Total Accepted: 141293 Total Submissions: 646961 Difficulty: Medium Given a string,原创 2016-04-12 16:09:54 · 773 阅读 · 0 评论 -
leetcode--Longest Palindromic Substring--最长回文子串--
【题目】: 【算法说明】:针对huiwenzi 【自己的代码】原创 2016-06-02 16:40:18 · 672 阅读 · 0 评论 -
leetcode--最长公共前缀--简单的字符串操作
【题目】: Write a function to find the longest common prefix string amongst an array of strings. 点击打开链接 【答案】: class Solution { public: string longestCommonPrefix(vector& strs) { if (strs.em原创 2016-07-17 15:48:33 · 684 阅读 · 0 评论 -
leetcode--ksum问题--3sum
【题目】:点击打开链接 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: The solution set原创 2016-07-17 22:08:28 · 4046 阅读 · 0 评论