https://leetcode.com/problems/longest-increasing-subsequence/#/solutions http://www.cnblogs.com/grandyang/p/4938187.html http://www.cnblogs.com/Edward ...
分类:
其他好文 时间:
2017-06-30 18:56:43
阅读次数:
276
Say you have an array for which the i th element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may compl ...
分类:
其他好文 时间:
2017-06-29 22:26:41
阅读次数:
191
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Input: "babad" Output: "b ...
分类:
其他好文 时间:
2017-06-29 09:56:52
阅读次数:
197
【题目描述】Givenanarrayofintegers,findtwonon-overlappingsubarrayswhichhavethelargestsum.Thenumberineachsubarrayshouldbecontiguous.Returnthelargestsum.Notice:Thesubarrayshouldcontainatleastonenumber给定一个整数数组,找出两个不重叠子数组使得它们的和最大。每..
分类:
其他好文 时间:
2017-06-29 00:58:48
阅读次数:
134
van Emde Boas trees 支持所有优先级优先级队列的操作,并且巧妙的是它对于SEARCH, INSERT,DELETE,MINIMUM,MAXMUN,SUCCESSOR,和PREDECESSOR这些操作的支持都在最坏复 杂度O(lglgn)之内。不过有些限制的是,所有的Kye值都必须在 ...
分类:
其他好文 时间:
2017-06-28 21:53:14
阅读次数:
170
package ppt11util类; import java.util.Calendar; public class TprintCalendar { public static void main(String[] args) { printCalendar(2017,6); } public ... ...
分类:
编程语言 时间:
2017-06-28 18:42:38
阅读次数:
180
题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may co ...
分类:
其他好文 时间:
2017-06-27 23:27:24
阅读次数:
222
A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The ...
分类:
其他好文 时间:
2017-06-27 18:52:04
阅读次数:
157
交叉熵可在神经网络(机器学习)中作为损失函数,p表示真实标记的分布,q则为训练后的模型的预测标记分布,交叉熵损失函数可以衡量真实分布p与当前训练得到的概率分布q有多么大的差异。 相对熵(relative entropy)就是KL散度(Kullback–Leibler divergence),用于衡量 ...
分类:
其他好文 时间:
2017-06-27 17:01:26
阅读次数:
326
Given an unsorted array of integers, find the length of longest increasing subsequence. For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest inc ...
分类:
其他好文 时间:
2017-06-27 15:02:24
阅读次数:
138