
C++
文章平均质量分 58
lin_tuer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode小白解题记录——第二题
2. Add Two Numbers You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two number原创 2016-08-16 16:31:42 · 1754 阅读 · 0 评论 -
leetcode小白解题记录——第三题
3. Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is原创 2016-08-18 16:14:18 · 1597 阅读 · 0 评论 -
vector 容器
在刷leetcode的时候,经常看到这个容器,好像整形数组都用的这个容器,为了方便之后的参考学习,现整理vector容器用法如下: 1.基本操作 (1)头文件#include. (2)创建vector对象,vector vec; (3)尾部插入数字:vec.push_back(a); (4)使用下标访问元素,cout (5)使用迭代器访问元素. v翻译 2016-08-22 02:55:01 · 307 阅读 · 0 评论 -
leetcode小白解题记录——第四题
Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log原创 2016-08-22 02:51:49 · 484 阅读 · 0 评论 -
leetcode小白解题记录——第七题
7. Reverse Integer Question Editorial Solution My Submissions Total Accepted: 165524Total Submissions: 696092Difficulty: Easy Reverse digits of an integer. Example1:原创 2016-09-14 20:35:33 · 1600 阅读 · 0 评论 -
leetcode小白解题记录——第一题
第一题题目: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the targe原创 2016-08-12 10:19:00 · 872 阅读 · 0 评论 -
leetcode小白解题记录——第五题
5. Longest Palindromic Substring Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest pa原创 2016-09-08 11:26:12 · 402 阅读 · 0 评论