摘要: Problem : Given a $m \times n$ matrix, if an element is 0, set its entire row and column to 0. Do it in place. Example 1: Example 2: Follow up: A stra 阅读全文
posted @ 2020-02-01 08:27 littledy 阅读(90) 评论(0) 推荐(0)
摘要: Problem : Given a linked list, rotate the list to the right by k places, where k is non negative. Example 1: Example 2: 思路 : 首先算出链表的长度(因为平移的时候以长度为周期重复 阅读全文
posted @ 2020-01-31 17:28 littledy 阅读(86) 评论(0) 推荐(0)
摘要: Problem : The set contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following sequence 阅读全文
posted @ 2020-01-31 10:23 littledy 阅读(89) 评论(0) 推荐(0)
摘要: Problem : Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 思路 : 将区间的左端点按从小到大进行排序,然后观察相邻2个区间是否有公共部分,如果有公共部分则选取右端 阅读全文
posted @ 2020-01-30 20:07 littledy 阅读(86) 评论(0) 推荐(0)
摘要: Problem : Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wou 阅读全文
posted @ 2019-09-06 17:23 littledy 阅读(165) 评论(0) 推荐(0)
摘要: ```c void process1(string str, int i){ if(i == str.length()){ cout 阅读全文
posted @ 2019-08-14 11:51 littledy 阅读(405) 评论(0) 推荐(0)
摘要: ```c ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) { if(l1 == NULL) return l2; if(l2 == NULL) return l1; if(l1->val val) { l1->next = mergeTwoLists(l1->next, l2); ... 阅读全文
posted @ 2019-08-14 10:53 littledy 阅读(221) 评论(0) 推荐(0)
摘要: 1.插值多项式及存在唯一性 & 8195;& 8195;在科学研究和生产实践活动中所遇到的大量函数,有相当一部分是通过观测或实验得到的,虽然其函数关系$y=f(x)$在某个区间$[a,b]$上是存在的,但是却不知道具体的解析表达式,只能通过观测或实验得到一些离散点的函数值、导数值,因此希望对这样的函 阅读全文
posted @ 2019-07-01 16:24 littledy 阅读(873) 评论(0) 推荐(0)
摘要: Markdown是一种跟Latex很类似的语法,但是比Latex要简单很多,如果不是用来写论文,在平时写文档、博客、文章我觉得用Markdown已经很足够了,而且写出来的效果也很好。我用的编辑器是Visual Studio code (VS code) ,使用VS code用Markdown写文档的 阅读全文
posted @ 2019-05-22 20:28 littledy 阅读(203) 评论(0) 推荐(0)
摘要: 以下是自己从网上收集的一些课程资源链接: 北京大学课程资料整理: 清华大学计算机系课程资源: 或 浙江大学课程攻略共享计划: c++查询网站(用来查各种标准库的数据结构很方便): 阅读全文
posted @ 2019-05-22 20:04 littledy 阅读(353) 评论(0) 推荐(0)