利用中序遍历二叉排序树出来是个升序序列的特点,每访问一个节点,减去前面节点即为这个节点的最小差值。 ...
分类:
其他好文 时间:
2018-06-04 16:54:58
阅读次数:
110
原题网址:https://www.lintcode.com/problem/minimum-path-sum/description 描述 给定一个只含非负整数的m*n网格,找到一条从左上角到右下角的可以使数字和最小的路径。 描述 描述 给定一个只含非负整数的m*n网格,找到一条从左上角到右下角的可 ...
分类:
其他好文 时间:
2018-06-04 16:29:21
阅读次数:
246
#1586 : Minimum Time Limit:1000ms Case Time Limit:1000ms Memory Limit:256MB Description You are given a list of integers a0, a1, …, a2^k-1. You need t ...
分类:
其他好文 时间:
2018-06-03 23:42:57
阅读次数:
197
概念对于一个数字系统而言,建立时间和保持时间可以说是基础中的基础,这两个概念就像是数字电路的地基,整个系统的稳定性绝大部分都取决于是否满足建立时间和保持时间。但是对于绝大部分包括我在内的初学者来说,建立时间和保持时间的理解一直都是一个很大的困扰,尽管概念背得住,但是却没有理解这其中的精髓。这篇文章主 ...
分类:
其他好文 时间:
2018-06-03 19:37:46
阅读次数:
191
题目: Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Note: If the ...
问题描述: Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations p ...
分类:
其他好文 时间:
2018-06-03 12:23:09
阅读次数:
140
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" /> 在网页的<head>中增加以上这句话,可 ...
分类:
移动开发 时间:
2018-06-02 11:13:08
阅读次数:
235
Problem description Alyona's mother wants to present an array of n non-negative integers to Alyona. The array should be special. Alyona is a capriciou ...
分类:
其他好文 时间:
2018-05-31 20:28:46
阅读次数:
170
Problem description There are n stones on the table in a row, each of them can be red, green or blue. Count the minimum number of stones to take from ...
分类:
其他好文 时间:
2018-05-30 19:25:44
阅读次数:
175
数学方法秒杀 方程: (min+x)*sz=sum+(sz-1)*x 解出x即可 ...
分类:
其他好文 时间:
2018-05-30 17:36:13
阅读次数:
141