![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
初沏的茶
这个作者很懒,什么都没留下…
展开
-
[leetcode 171] Excel Sheet Column Number 解题报告
171. Excel Sheet Column NumberProblem原创 2016-04-27 19:00:24 · 567 阅读 · 0 评论 -
计算某个日期起N天后的日期(C语言递归实现)
假设起始日期是当月1日 1. N小于当月天数,则年份月份 不变,天数直接加上N,程序结束。 2. 若N大于等于当月天数,且当前月份为12月,年份加1,月份重置为1,否则,年份不变,月份加1。 3. 以更新后的日期和剩余的天数为输入,重复步骤1,2.原创 2016-04-18 22:02:35 · 6894 阅读 · 0 评论 -
[leetcode121] Best Time to Buy and Sell Stock解题报告
Best Time to Buy and Sell Stock原创 2016-05-24 19:53:13 · 463 阅读 · 0 评论 -
[leetcode 141] Linked List Cycle 解题报告
Linked List CycleProblem原创 2016-05-17 17:35:31 · 398 阅读 · 0 评论 -
[leetcode 142]Linked List Cycle II解题报告
Linked List Cycle II原创 2016-05-17 19:44:46 · 491 阅读 · 0 评论 -
[leetcode024] Swap Nodes in Pairs 解题报告
Swap Nodes in PairsProblem Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3.原创 2016-04-23 20:54:25 · 321 阅读 · 0 评论 -
[leetcode 025] Reverse Nodes in k-Group 解题报告
Reverse Nodes in k-Group Problem Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.原创 2016-04-23 21:12:39 · 332 阅读 · 0 评论 -
[C++]重载二维数组下标 [ ][ ]实现二维矩阵
[C++]重载二维数组下标 [ ][ ]实现二维矩阵1. 背景实际项目中,经常需要用到动态分配二维数据。因此经常需要手写循环,来分配和初始化数组。如://首先分配一个指针数组int** array = new int*[m];//然后给指针数组中的指针分配内存for (int i=0;i<m;i++){ for (int j=0;j<n;j++) { arra原创 2016-08-22 17:21:04 · 4269 阅读 · 0 评论