- 博客(6)
- 收藏
- 关注
原创 Leetcode 206 Reverse linked list
问题描述:Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be reversed either iteratively or recursi...
2018-11-22 15:17:30
116
原创 Leetcode 92 Reverse Linked List II
问题描述:Reverse a linked list from position m to n. Do it in one-pass.Note: 1 ≤ m ≤ n ≤ length of list.Example:Input: 1->2->3->4->5->NULL, m = 2, n = 4Output: 1->4->3->2->...
2018-11-22 15:16:47
96
原创 LeetCode 39. Combinational Sum
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the candidatenumbers sums to target.The same repeated...
2018-09-29 00:28:21
231
原创 CSAPP:Bomb Lab
一共6个代码块。第一个函数0000000000400ee0 <phase_1>: 400ee0: 48 83 ec 08 sub $0x8,%rsp 400ee4: be 00 24 40 00 mov $0x402400,%esi 400ee9: e8 4a 04 00 00 ...
2018-08-16 10:15:46
398
1
原创 C++ memory alignment
这段时间在看csapp。书中有讲到关于结构体内存对齐的事情,举的例子是C语言的。 David O’Hallaron教授说到对齐规则,是每种类型的变量的第一位与结构体起始位置的距离必须是该变量长度的整数倍,比如int就要是4的倍数,double就是8的倍数。具体的例子是这样的。struct A{ int x; double y;};struct B{ dou...
2018-08-09 16:11:01
355
原创 机器学习第一期·什么是机器学习
“A computer program is said to learn from experience E with respect to some class of task T and performance measure P, if its performance at tasks in T, as measured by P, improves with experi...
2018-08-07 17:10:45
200
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人