- 博客(20)
- 资源 (12)
- 收藏
- 关注
原创 Capacitated Facility Location Problem
Capacitated Facility Location Problem问题描述Suppose there are n facilities and m customers. We wish to choose:which of the n facilities to openthe assignment of customers to facilitiesThe object...
2018-12-23 21:25:48
308
原创 Leetcode 322. Coin Change
322. Coin Change题目You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If t...
2018-12-09 22:40:19
145
原创 Leetcode 62. Unique Paths
62. Unique Paths题目A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is try...
2018-11-25 21:15:36
133
原创 Leetcode 213. House Robber II
213. House Robber II题目You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That m...
2018-11-17 10:55:53
134
原创 Leetcode 32. Longest Valid Parentheses
32. Longest Valid Parentheses题目Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.Example 1:Input: "(()"Output: 2...
2018-11-10 18:26:15
121
原创 Leetcode 120. Triangle
120. Triangle题目Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle[ [2], ...
2018-11-05 13:02:07
140
原创 Leetcode 64. Minimum Path Sum
64. Minimum Path Sum题目Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move ei...
2018-10-28 19:29:46
114
原创 Leetcode 55. Jump Game
55. Jump Game题目Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position....
2018-10-21 19:51:13
102
原创 Leetcode 684. Redundant Connection
684. Redundant Connection题目In this problem, a tree is an undirected graph that is connected and has no cycles.The given input is a graph that started as a tree with N nodes (with distinct values 1,...
2018-10-14 21:40:39
224
原创 Leetcode 310. Minimum Height Trees
310. Minimum Height Trees题目For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible rooted trees, those with m...
2018-10-07 22:23:53
138
原创 Leetcode 133. Clone Graph
133. Clone Graph题目Given the head of a graph, return a deep copy (clone) of the graph. Each node in the graph contains a label (int) and a list (List[UndirectedGraphNode]) of its neighbors. There is ...
2018-09-30 21:56:52
152
原创 Leetcode 207. Course Schedule
207. Course Schedule题目There are a total of n courses you have to take, labeled from 0 to n-1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which...
2018-09-23 21:14:40
150
原创 Leetcode 241. Different Ways to Add Parentheses
241. Different Ways to Add Parentheses题目Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The va...
2018-09-16 16:12:14
118
原创 Leetcode 240. Search a 2D Matrix II
Leetcode 240. Search a 2D Matrix II题目Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in asc...
2018-09-09 17:27:20
617
原创 3
1(1) C语言:int main () { const double pi=3.14; double *p=& pi; *p=3.5; printf (“%lf”,pi); } 输出结果:3.500000;C++: int main () { const double pi=3.14; double *p=& pi; } [Erro
2017-03-17 11:14:38
204
原创 2
1不写构造函数:编译器自动补空定义构造函数;写带参数的构造函数(1)不带参数的构造函数也要写,不然无法实现默认初始化;(2) 可以在声明时 ,Date(int year=2017, int month=3, int day=10); 定义时 Date::Date(int year_,int month_,int day_) { year=year_; month=month_;
2017-03-11 14:34:37
331
原创 1
string s1; 默认初始化,s1是一个空字符串 string s2(s1); s2是s1的副本 string s2=s1; s2是s1的副本 string s3(“value”); s3是字面值”value”的副本,除去最后一个’\0’ string s3=”value”; s3是字面值”value”的副本,除去最后一个’\0’ string s4(n,’c’) s4是n个字符c组成
2017-03-11 14:11:23
188
原创 欢迎使用优快云-markdown编辑器
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
2016-12-28 21:55:58
170
原创 C语言学习的问题
一.值中的类型转换当赋值运算符两边的运算对象类型不同时,将要发生类型转换, 转换的规则是:把赋值运算符右侧表达式的类型转换为左侧变量的类型。具体的转换如下: (1) 浮点型与整型 ● 将浮点数(单双精度)转换为整数时,将舍弃浮点数的小数部分, 只保留整数部分。 将整型值赋给浮点型变量,数值不变,只将形式改为浮点形式, 即小数点后带若干个0。注意:赋值时的类型转换实际上是强制的。 (2
2016-10-11 17:26:40
527
原创 Construct 2 制作游戏心得
Construct 2 制作游戏心得学号:16340081 本人学院目录Construct 2 制作游戏心得初次接触一脸懵逼沉下心来摸索成长照葫芦画瓢后的收获尝试自创游戏探究construct 2 的功能第一个失败的游戏再次尝试心得体会附加2任意R进制数转化为10进制数公式1. 初次接触一脸懵逼首先网址上有教材,但忘记调成中文版,结果很多句子完全看不懂,复制到翻译器里,翻译出的
2016-10-06 11:02:19
1560
9
算法导论 Introduction to Algorithms(Thomas H. Cormen著)英文版 高清文字版pdf
2018-09-05
算法导论 中文版 第三版 ( Thomas H.Cormen著)
2018-09-05
算法导论 中文版 第二版
2018-09-05
编译原理(美Alfred V. Aho)第二版 中文版
2018-09-03
C Primer Plus 第五版 中文版 高清完整版
2018-09-03
自主移动机器人导论 第2版
2018-09-03
《鸟哥的Linux私房菜-基础篇》第四版 高清文字版pdf
2018-09-03
鸟哥的Linux私房菜 文字版高清pdf
2018-09-03
C Primer Plus 第五版 中文版
2018-09-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人