一件事,要知其然往往很简单,要知其所以然通常不是那么容易,就如最近重新巩固spring的过程中,就觉得还有许多问题其实并不是十分明了。
屈指一算,手头上做过的正式项目也有了四五六七个了,不管用的数据...
分类:
编程语言 时间:
2016-12-12 20:24:42
阅读次数:
224
今日问题: 请问主程序中输出结果是什么?(点击以下“【Java每日一题】20161212”查看20161209问题解析) 题目原发布于公众号、简书:【Java每日一题】20161212,【Java每日一题】20161212 ...
分类:
编程语言 时间:
2016-12-12 09:39:51
阅读次数:
183
题目描述 Youyouyouyou is very interested in math, one day, an idea came into his mind that how many ways he can patition n same things into no more than m ...
分类:
其他好文 时间:
2016-12-10 22:40:26
阅读次数:
310
1)count()函数返回一个(field)字段中的非空值的数量。语法:SELECTCOUNT(<field_key>)FROM<measurement_name>[WHERE<stuff>][GROUPBY<stuff>]示例:>SELECTCOUNT(water_level)FROMh2o_feet
name:h2o_feet--------------timecount1970-01-01T00:0..
分类:
数据库 时间:
2016-12-09 08:52:43
阅读次数:
336
一、开发环境布置 C#中添加对Word的支持,只需添加对Microsoft.Office.Interop.Word的命名空间,如下图所示,右键点击“引用”,在弹出的“添加引用”对话框中选中COM标签页,找到“Microsoft Word 12.0 Object Library”。 点击确定按钮后,可 ...
思路: dfs序其实是很水的东西。 和树链剖分一样, 都是对树链的hash。 该题做法是:每次对子树全部赋值为1,对一个点赋值为0,查询子树最小值。 该题需要注意的是:当我们对一棵子树全都赋值为1的时候, 我们要查询一下赋值前子树最小值是不是0, 如果是的话, 要让该子树父节点变成0, 否则变0的信 ...
分类:
其他好文 时间:
2016-12-07 20:44:35
阅读次数:
264
[11] Container With Most Water [Medium] O(n^2)的暴力解法直接TLE。 正确的解法是Two Pointers。 O(n)的复杂度。保持两个指针i,j;分别指向长度数组的首尾。如果ai 小于aj,则移动i向后(i++)。反之,移动j向前(j--)。如果当前的 ...
分类:
其他好文 时间:
2016-12-06 03:55:49
阅读次数:
207
这题考点在于需要设置两个visited数组 Two Queue and add all the Pacific border to one queue; Atlantic border to another queue. Keep a visited matrix for each queue. I ...
分类:
其他好文 时间:
2016-12-03 14:58:36
阅读次数:
234
问题描述 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two ... ...
分类:
其他好文 时间:
2016-12-03 12:24:32
阅读次数:
144
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. ...
分类:
移动开发 时间:
2016-12-03 08:00:50
阅读次数:
220