- 博客(86)
- 收藏
- 关注
原创 C++模板编程模式CTRP
CRTP ,curiously recurring template pattern 奇特的递归模板编程,意思是一个类继承的父类是个模板类,参数是自己。
2017-08-20 12:11:13 1225
原创 红黑树和AVL树的比较
红黑树和AVL树的比较这篇文章不是对红黑树和AVL树基本理论的讲解,更多的是关注为何红黑树和AVL树相比较的优缺点。读者应该之前就已经了解到红黑树和AVL树的相关基础知识。
2017-08-14 15:58:05 1333
原创 一些细小的知识
1. 局部变量2. #include <> 和 #include ""的区别是什么?3. 数组指针和指针数组的区别4. 类的成员函数中是否可以调用`delete this`?5. 关于大小端存储
2017-06-26 19:43:12 567
原创 【网易2017实习生编程题】 工作安排 集合 奇怪的表达式求值 涂棋盘 小易记单词
【网易2017实习生编程题】【Problem 6】工作安排【Problem 7】集合【Problem 8】奇怪的表达式求值【Problem 9】涂棋盘【Problem 10】小易记单词
2017-06-26 19:14:09 534
原创 【网易2017实习生编程题】 工作安排 集合 奇怪的表达式求值 涂棋盘 小易记单词
【网易2017实习生编程题】【Problem 6】工作安排【Problem 5】集合【Problem 8】奇怪的表达式求值【Problem 9】涂棋盘【Problem 10】小易记单词
2017-06-26 19:13:09 543
原创 【网易2017实习生编程题】赶去公司 调整队形 消除重复元素
【网易2017实习生编程题】 【Problem 2】赶去公司 【Problem 3】调整队形 【Problem 4】消除重复元素
2017-06-26 18:58:49 299
原创 【LeetCode】13. Roman to Integer && 12. Integer to Roman
13. Roman to Integer12. Integer to Roman
2017-06-21 18:31:32 201
原创 【LeetCode】128. Longest Consecutive Sequence
128. Longest Consecutive Sequence
2017-06-20 23:19:34 277
原创 【LeetCode】5. Longest Palindromic Substring
5. Longest Palindromic Substring
2017-06-20 23:04:10 180
原创 【LeetCode】Remove Duplicates from Sorted List系列
83. Remove Duplicates from Sorted List82. Remove Duplicates from Sorted List II
2017-06-16 11:55:13 226
原创 C++中使用宏需要注意的规范
使用宏需要注意的规范1. 用宏定义表达式时,要使用完备的括号2. 使用宏时,不允许参数发生变化3. 用大括号将宏所定义的多条表达式进行括起来
2017-06-15 19:47:43 2808
原创 【LeetCode】 84. Largest Rectangle in Histogram
84. Largest Rectangle in Histogram
2017-06-14 21:45:08 246
原创 【LeetCode】Maximum Subarray 和 Maximum Product Subarray
53. Maximum Subarray152. Maximum Product Subarray
2017-06-13 21:08:05 205
原创 【LeetCode】 Majority Element 系列
169. Majority Element 229. Majority Element II
2017-06-13 14:46:40 243
原创 【LeetCode】Insert Delete GetRandom O(1) 系列
Insert Delete GetRandom O(1) 系列380. Insert Delete GetRandom O(1)381. Insert Delete GetRandom O(1) - Duplicates allowed
2017-06-12 13:24:24 229
原创 【LeetCode】 Unique Paths 系列
Unique Paths 系列62. Unique Paths63. Unique Paths II
2017-06-10 20:07:37 246
原创 【LeetCode】 Search in Rotated Sorted Array 系列
Search in Rotated Sorted Array 系列33. Search in Rotated Sorted Array81. Search in Rotated Sorted Array II
2017-06-08 16:43:10 194
原创 【LeetCode】 Pascal's Triangle 系列
Pascal’s Triangle118.Pascal's Triangle119. Pascal's Triangle II
2017-06-08 16:15:22 199
原创 【LeetCode】 Jump Game 系列
【LeetCode】 Jump Game 系列55. Jump Game45. Jump Game II
2017-06-07 22:23:05 332
原创 【LeetCode】48. Rotate Image
【LeetCode】48. Rotate ImageYou are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place?题意:让n×n的矩阵顺时针旋转90都,考虑如果原地旋转需要怎么办
2017-06-07 16:39:58 223
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人