Problem: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the f ...
分类:
其他好文 时间:
2016-05-23 21:03:25
阅读次数:
113
常用的数据挖掘&机器学习知识(点) Basis(基础): MSE(MeanSquare Error 均方误差),LMS(Least MeanSquare 最小均方),LSM(Least Square Methods 最小二乘法),MLE(Maximum LikelihoodEstimation最大似 ...
分类:
系统相关 时间:
2016-05-22 13:54:55
阅读次数:
395
在一个数组中找出一个子数组,使得子数组中的数的乘积最大。...
分类:
其他好文 时间:
2016-05-22 12:27:16
阅读次数:
108
题目链接:https://leetcode.com/problems/longest-increasing-subsequence/
题目:
Given an unsorted array of integers, find the length of longest increasing subsequence.
For example,
Given [10, 9, 2, 5...
分类:
其他好文 时间:
2016-05-22 12:23:17
阅读次数:
213
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 comple ...
分类:
其他好文 时间:
2016-05-21 11:29:59
阅读次数:
126
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro ...
分类:
其他好文 时间:
2016-05-21 01:22:48
阅读次数:
149
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 ...
分类:
其他好文 时间:
2016-05-19 19:14:08
阅读次数:
168
一、前言 对于这类抽象问题还有self用法,还要多做多练习,此题是参考其他答案所做。 二、题104 Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the n ...
分类:
编程语言 时间:
2016-05-19 19:03:31
阅读次数:
162
简单动规 两个字符串最大公共子序列 。 #include<cstdio> #include<iostream> #include<cstring> #include<string> using namespace std; int f[1010][1010]; string str1,str2; i ...
分类:
其他好文 时间:
2016-05-18 21:59:21
阅读次数:
137