- 博客(3)
- 收藏
- 关注
原创 C++vector插入时的内存分配
C++vector插入时的内存分配今天在看侯建的《STL源码剖析》时看到插入操作时发现多了一个拷贝构造的时候,有点疑惑,于是自己做了一个实验,对vector的push_back()操作时的内存分配进行了仔细的了解。快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl + Q插入链接 Ctrl + L插入代码 Ctrl + K插入图片 C
2017-03-09 22:22:19 2769 2
原创 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 “abc”, which the length is 3. Given “bbbbb”, the answer is “b”, w
2017-02-24 21:03:19 208
原创 Leetcode-2Add Two Numbers
Leetcode-2Add 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 tw
2016-06-14 14:04:13 195
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人