Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: Construct the maximum tree by the given array a ...
分类:
其他好文 时间:
2017-08-10 13:40:47
阅读次数:
110
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or ...
分类:
其他好文 时间:
2017-08-10 10:05:44
阅读次数:
112
根据题意遍历 但是对于有序的数组还是用二分法效率比较高 这道题是Search in Rotated Sorted Array的扩展,区别就是现在不是找一个目标值了,而是在bst中找最小的元素。主要思路还是跟Search in Rotated Sorted Array差不多,还是通过左边界和中间的大小 ...
分类:
其他好文 时间:
2017-08-09 13:10:25
阅读次数:
116
The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another n ...
分类:
其他好文 时间:
2017-08-09 12:47:46
阅读次数:
144
有时,为美观效应,需要设置jqgrid隔行换色。jqgrid提供altRows属性来配置 启动隔行换色:altRows: true,//隔行换色 ...
分类:
其他好文 时间:
2017-08-08 20:07:56
阅读次数:
254
好久没梳理下Mysql基础命令了.今天抽空整理了下,虽然很简单...但是还是有必要巩固下基础滴啦 1.创建表:之前需要use database database_name 然后create table 表名();例:创建员工表tb_employee1,结构如下表所示 字段名称 数据类型 备注 id ...
分类:
数据库 时间:
2017-08-08 00:41:11
阅读次数:
323
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your ...
分类:
其他好文 时间:
2017-08-07 20:41:30
阅读次数:
119
题目: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and ...
分类:
其他好文 时间:
2017-08-07 18:29:42
阅读次数:
105
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr ...
分类:
其他好文 时间:
2017-08-05 22:00:06
阅读次数:
156