Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1.The length o ...
分类:
其他好文 时间:
2017-02-17 18:04:46
阅读次数:
151
在正在进行的项目中,需要用到折线图来展示数据,于是看大神就使用了github用户现有的源码,我们直接填充数据即可 首先再一看布局文件 再是获取数据填充 至于LineChartView,从大神哪里直接拿来使用了,详细大家可参照下面的链接 https://github.com/lecho/helloch ...
分类:
其他好文 时间:
2017-02-17 10:04:14
阅读次数:
648
公司业务系统一张表按时间每天分区 写入数据时报错:ORA-14300: 分区关键字映射到超出允许的最大分区数的分区 ORA-14300: partitioning key maps to a partition outside maximum permitted number of partitio ...
分类:
其他好文 时间:
2017-02-16 13:12:03
阅读次数:
286
可以查看 /usr/include/limits.h 文件 里面定义好了各种类型的最大最小值 ... /* Minimum and maximum values a `signed int' can hold. */# define INT_MIN (-INT_MAX - 1) # define I ...
分类:
系统相关 时间:
2017-02-15 18:41:33
阅读次数:
292
http://codeforces.com/problemset/problem/730/B 题意:一个交互式问题,给出一个n代表有n个数字,你可以问下标为x和y的数的大小,会给出">","<"或"=",要求询问次数不能超过 ,最后输出最小的数和最大的数的下标。 思路:很新奇的题目。先将两两比较整理 ...
分类:
其他好文 时间:
2017-02-15 13:54:34
阅读次数:
296
必要知识: 做移动站有一个必要的知识,就是关于屏幕宽度以及缩放问题。我们习惯的在<head>标签之间增加一个<meta>标签 <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,m ...
分类:
移动开发 时间:
2017-02-14 20:48:05
阅读次数:
271
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 求字符串中的最大回文子串(从左往右和从右往左读一样的子串)。 Exa ...
分类:
其他好文 时间:
2017-02-12 01:05:47
阅读次数:
191
http://poj.org/problem?id=2479 题意: 给出一个整数串,求连续子串1和连续子串2,不相交并且串1加串2的和最大。 思路: 其实就是求最大连续和,题意要求就是求两段最大连续和。我们可以从左边和右边分别求最大连续和,代码中的dp_l[i]就是1~i的最大连续和,dp_r[i ...
分类:
其他好文 时间:
2017-02-09 23:52:52
阅读次数:
361
414. Third Maximum Number 414. Third Maximum Number Description Submission Solutions Add to List Total Accepted: 20624 Total Submissions: 76932 Diffic ...
分类:
其他好文 时间:
2017-02-09 11:38:43
阅读次数:
148
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 complet... ...
分类:
其他好文 时间:
2017-02-07 23:38:53
阅读次数:
185