由买买提看人间百态

topics

全部话题 - 话题: input
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)
y****3
发帖数: 131
1
来自主题: JobHunting版 - 脸家电话面试面筋

public class Monotonic {
enum type {
increasing, decreasing, undefined
}
public boolean isMonotonic(int[] input) {
if (input == null || input.length <= 1)
return true;
type mono_type = type.undefined;
for (int i = 0; i < input.length - 1; i++) {
if (input[i] > input[i+1]) {
if (mono_type == type.increasing) return false;
mono_type = type.decreasing;
}
else if (input[i] < i... 阅读全帖
w******t
发帖数: 16937
2
来自主题: Living版 - 想设计个logo
分特,想看专业的?
看这个。声明:因为网络安全原因,我删去了一些必须删去的内容。
http://schema.org/WebPage">Google