- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 整数划分问题
目标:编写递归程序,求正整数的所有不同的划分组合。例如输入6,则输出:6 = 5+16 = 4+26 = 4+1+16 = 3+36 = 3+2+16 = 3+1+1+16 = 2+2+26 = 2+2+1+16 = 2+1+1+1+16 = 1+1+1+1+1+1解决方法从特殊到一般,观察上面6的划分,发现6=5+1;6=4+2;6=3+3;6=2+4;6=1+5;之后在对1(5之后)、2(4之...
2018-04-19 21:08:17
610
原创 136
Problem \136. Single Number Easy Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Co...
2019-05-14 21:59:39
332
原创 3
Problem \3. Longest Substring Without Repeating Characters Medium Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explana...
2019-05-05 22:25:14
179
原创 2
Problem \2. Add Two Numbers Medium You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digi...
2019-05-04 21:41:31
199
原创 1:第一题
Problem \1. Two Sum Easy 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 would have exactly one solution, and y...
2019-05-04 13:49:18
197
原创 20190303
7:00 - 8:30 老师邮件,课程信息疑问 8:30 - 9:00 吃 加油! 9:10 - 11:30 2h !1. 数电MOOC Chapter1.4 和Chapter 2 全部 chapter 2 : 2/7; 还有很多呀,灭之! 13:00 - 17:30 4.5h 玩,享受生活的乐趣 17:30 - 20:30 交通路程40min,吃40min,羽毛球10...
2019-03-03 09:10:45
178
原创 20190302
7:50 - 11:30 3.5h √1. 数电复习和作业全部完成 1h √2. Linux 报告题目1 1.5h √3. 计算机组成设计键盘 1h 到11:40; Comment: Linux报告草草完成,其实这报告和设计完全不需要放在早上第一个时间段,时间上没有去优化, 自己上午好像也没学什么,关键在编程,不在水报告。 13:00 - 15:40 2.5h ×1....
2019-03-02 07:49:30
182
原创 在C语言中用链表实现两个多项式加减乘
目标:输入两个多项式,计算它们的+、-、*的运算结果,并按幂次从小到大输出到屏幕输入方法:从文件输入多项式原始数据 多项式文件的格式如下 n a1 m1 a2 m2 a3 m3 . .. ai mi.... an mn 其中 n 为项数,ai为系数,mi为指数, 它们都是整数。 上述数据所表达的多项式为: a1*x^m...
2018-04-14 22:29:31
2034
dvc++最新版最全
2018-05-13
算法导论(英文版)
2018-05-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅