这个是什么啊。。。。。。。。纠结了一个多星期的东西 忽然间看到了 原来 ImageUtilEngine 是一个类,然后看最后有return; 哦原来是返回值为类的函数,就好比c语言中返回值为结构体的函数。 ...
分类:
其他好文 时间:
2016-03-30 14:53:00
阅读次数:
150
Given an array of integers, find two non-overlapping subarrays which have the largest sum.The number in each subarray should be contiguous.Return the ...
分类:
其他好文 时间:
2016-03-30 14:34:53
阅读次数:
173
1. 什么是λ表达式
λ表达式本质上是一个匿名方法。让我们来看下面这个例子:
public int add(int x, int y) {
return x + y;
}
转成λ表达式后是这个样子:
(int x, int y) -> x + y;
参数类型也可以省略,Java编译器会根据上下文推断出来:
(x, y...
分类:
编程语言 时间:
2016-03-30 13:15:30
阅读次数:
245
Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn't one, return 0 instead. Example 1: Given ...
分类:
编程语言 时间:
2016-03-30 12:56:33
阅读次数:
249
1. palindrome-partitioning Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome pa ...
分类:
其他好文 时间:
2016-03-30 12:29:14
阅读次数:
124
先放代码: int check() { union { unsigned int a; unsigned char b; }c; c.a = 1; return 1 == c.b; } 再说原理: 上述程序,假设返回值为1则是小端,假设是0则大端。由于union类型共用一段内存,所以c占4个字节(假 ...
分类:
其他好文 时间:
2016-03-30 08:18:56
阅读次数:
157
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Example For example, given the follo ...
分类:
其他好文 时间:
2016-03-30 08:16:24
阅读次数:
142
原题链接在这里:https://leetcode.com/problems/binary-tree-vertical-order-traversal/ 题目: Given a binary tree, return the vertical order traversal of its nodes' ...
分类:
其他好文 时间:
2016-03-30 06:53:22
阅读次数:
154
前几天写了个表单提交,由于还不会本地写个数据测试,于是就直接空着URL交给后台同学了。结果今天反馈回一个bug,说是button点击事件并没有用,还没点击就发生了。 举个简单的栗子。 大体就是这样写的。结果就是一打开那个网页直接会弹出“3”,跟你的button没半毛钱的关系,button也就成了华丽 ...
分类:
其他好文 时间:
2016-03-30 01:27:52
阅读次数:
123
终止JS运行有如下几种可能: 终止函数的运行的方式有两种 在函数中使用return,则当遇到return时,函数终止执行,控制权继续向下运行 在函数中使用try-catch异常处理,需要结束时,使用throw抛出异常 终止动画特效的运行的方式是使用stop方法 stop([clearQueue], ...
分类:
Web程序 时间:
2016-03-29 23:45:22
阅读次数:
1315