自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

kelvinmao的博客

Don't be evil

  • 博客(12)
  • 收藏
  • 关注

原创 STL学习之路(一) deque

std::deque deque (usually pronounced like “deck”) is an irregular acronym of double-ended queue. Double-ended queues are sequence containers with dynamic sizes that can be expanded or contracted on bo

2016-07-28 19:05:34 593

原创 Leetcode解题笔记(Array)

源码见github https://github.com/Kelvinmao/Leetcode/tree/master/Array 2016-08-08更新154.Find Minimum in Rotated Sorted Array IIFollow up for “Find Minimum in Rotated Sorted Array”: What if duplicates are al

2016-07-23 22:38:02 7293

原创 C++学习之路(3) 常用数据结构与STL

一.什么是STLSTL全称为Standard Template Library,即标准模板库,该库提供一些常用的容器对象和一些通用的算法等,大家可以理解STL就是一个库,该库帮我们封装了很多容器类和通用的方法,我们可以通过调用该库中封装好的方法和容器类来进行编程二.STL 六大组件容器(Container)算法(Algorithm) 迭代器(Iterator) 函数对象,又称仿函数(Func

2016-07-22 16:32:32 1772

原创 C++学习之路(2) C++输入输出 new delete操作符 函数重载

一. C++风格的输入输出在编写C++程序时,如果需要使用输入输出时,则需要包含头文件 iostream。在 iostream 中定义了用于输入输出的对象,例如常见的 cin 表示标准输入、cout 表示标准输出、cerr 表示标准错误。使用 cout 进行输出时需要紧跟<<操作符,使用 cin 进行输入时需要紧跟>>操作符,这两个操作符可以自行分析所处理的数据类型,因此无需像使用 scanf 和

2016-07-22 11:45:52 544

原创 C++学习之路(1) 类和对象,命名空间,标准库和std命名空间

一.类和对象的概念类 :C++中的类是一种用户定义的类型,可以理解为C语言中的结构体的升级版。对象 :C++中的类也是一种构造数据类型,但是进行了一些扩展,类的成员不但可以是变量,还可以是函数;通过类定义出来的变量就叫做对象。下面给出一段示例代码:#include<stdio.h>int main(void){ class Student{ public:

2016-07-22 09:09:56 1112

原创 Leetcode解题笔记(Stack)

2016-07-22更新 94.Binary Tree Inorder TraversalGiven a binary tree, return the inorder traversal of its nodes’ values.For example: Given binary tree [1,null,2,3], return [1,3,2].题目要求完成二叉树中序遍历,递归解法太简

2016-07-20 21:59:59 519

原创 Leetcode解题笔记(Linked List)

2016-07-20更新: 61.Rotate ListGiven a list, rotate the list to the right by k places, where k is non-negative.For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL.这道题的大意是将元素向右移

2016-07-18 21:23:20 2339

原创 Leetcode解题笔记(Linked List)

2016-07-17更新:142.Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, return null.给定一个单链表,判断其是否带环,若带环返回环的入口结点,否则返回NULL.判断是否带环,快慢指针法就可以解决问题。要返回环的入口,就显得比

2016-07-17 21:37:11 478

原创 Leetcode解题笔记(Linked List)

2016-07-16更新:19.Remove Nth Node From End of List Given a linked list, remove the nth node from the end of list and return its head.For example, Note: Given n will always be valid. Try to do this

2016-07-16 22:38:26 430

原创 Leetcode解题笔记(Linked List)

2016-07-15更新160.Intersection of Two Linked Lists Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists: begin to i

2016-07-15 19:13:28 720

原创 Leetcode解题笔记(string)

344.Reverse StringWrite a function that takes a string as input and returns the string reversed.Example: Given s = “hello”, return “olleh”.题意:给出字符串,将其反转,写出这样的函数。函数定义如下:char* reverseString(char* s) {}

2016-07-14 22:23:36 508

原创 Git学习之路(一) 建立版本库并实现文件操作

一.引入GitGit是目前最大的开源版本控制系统,那么说到版本控制,到底什么是版本控制呢?为什么要进行版本控制呢?当我们在编写代码的过程中,有时候要增加一个新功能,于是若干天之后新功能实现了,但在反复的测试过程中发现代码中存在问题,该怎么办呢?如果有一个工具能够恢复到旧的版本就好了。Git就就可以帮你完成这个心愿,这其中恢复旧版本的操作就叫做版本控制二.安装GitGit最早是在Linux下开发的,尽

2016-07-14 21:38:29 729

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除