Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp ...
分类:
编程语言 时间:
2018-12-11 14:32:00
阅读次数:
207
Difficulty: Medium More:【目录】LeetCode Java实现 Description Given a string s, find the longest palindromic substring in s. You may assume that the maximum ...
分类:
其他好文 时间:
2018-12-10 21:58:32
阅读次数:
173
Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any ...
分类:
其他好文 时间:
2018-12-10 13:50:35
阅读次数:
143
把某个研究系统中涉及的随机变量,根据是否条件独立绘制在一个有向图中,就形成了贝叶斯网络。 贝叶斯网络(Bayesian Network),又称有向无环图模型(directed acyclic graphical model ,DAG),是一种概率图模型,根据概率图的拓扑结构,考察一组随机变量{X 1 ...
分类:
其他好文 时间:
2018-12-10 11:35:59
阅读次数:
230
一、黏包成因 1、tcp协议的拆包机制 当发送端缓冲区的长度大于网卡的MTU时,tcp会将这次发送的数据拆成几个数据包发送出去。 MTU是Maximum Transmission Unit的缩写。意思是网络上传送的最大数据包。MTU的单位是字节。 大部分网络设备的MTU都是1500。如果本机的MTU ...
分类:
其他好文 时间:
2018-12-09 17:52:23
阅读次数:
233
题目限定输入是[0, 10^8],因而不用考虑负数或者越界情况,算是减小了难度。 1 public class Solution { 2 /** 3 * @param num: a non-negative intege 4 * @return: the maximum valued number ...
分类:
其他好文 时间:
2018-12-05 21:46:24
阅读次数:
188
前端 一、什么是前端 ? 前端即网站前台部分,运行在PC端,移动端等浏览器上展现给用户浏览的网页。随着互联网技术的发展,HTML5,CSS3,前端框架的应用,跨平台响应式网页设计能够适应各种屏幕分辨率,完美的动效设计,给用户带来极高的用户体验。 ? 前端技术一般分为前端设计和前端开发,前端设计一般可 ...
分类:
其他好文 时间:
2018-12-04 22:41:18
阅读次数:
331
修改【public】-【index.html】meta标签 <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no ...
分类:
其他好文 时间:
2018-12-04 00:53:02
阅读次数:
205
https://leetcode.com/problems/max-points-on-a-line/ Given n points on a 2D plane, find the maximum number of points that lie on the same straight line ...
分类:
其他好文 时间:
2018-12-03 14:01:08
阅读次数:
182
这个题对我来说真的是相当难的题目了,严格来讲可能不算是个动态规划的题目,但这个题目对类似的划分多个非重叠连续子区间的问题提供了一个很好解决方案 这个题目需要找三个非重叠的连续子区间,通过维护两个数组将第一个和第三个子区间可能的开始pos记录下来,在中间那个子区间开始的pos遍历时限制其边界范围,根据 ...
分类:
移动开发 时间:
2018-12-03 01:02:20
阅读次数:
171