Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between iand j is at most k.思路分析:...
分类:
其他好文 时间:
2015-05-31 12:26:41
阅读次数:
87
Problem Description
As is known to all, the blooming time and duration varies between different kinds of flowers. Now there is a garden planted full of flowers. The gardener wants to know how many ...
分类:
其他好文 时间:
2015-05-31 09:35:52
阅读次数:
119
观察者模式的英文原文是:Define a one-to-many dependency between objects so that when one object changes state, all its depedents are notified and updated automaticlly.意思是:定义对象间的一种一对多的依赖关系,使得每当一个对象改变状态,所有依赖于它的对象都会...
分类:
其他好文 时间:
2015-05-31 09:28:52
阅读次数:
104
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary ...
分类:
其他好文 时间:
2015-05-31 09:15:55
阅读次数:
113
Oracle数据库查询分页数据SQL语句:select * from (select a.*,rownum row_num from (select * from mytable t order by t.id desc) a ) b where b.row_num between...
分类:
数据库 时间:
2015-05-30 12:04:25
阅读次数:
157
What is pagePages are basically a virtual blockPages have fixed size, while block doesn't(dependent on device)What is blockA block is the smallest uni...
分类:
其他好文 时间:
2015-05-30 00:33:30
阅读次数:
134
Difference between menu item types; Display, Output and Action in DynamicsAxDevelopers often ask me what the difference is between the three different...
分类:
其他好文 时间:
2015-05-29 17:39:30
阅读次数:
84
1. Use a query string, which appends information onto the URL of the target page. You can use a query string when using a HyperLink control to build n...
分类:
Web程序 时间:
2015-05-29 15:21:16
阅读次数:
118
select *from db_user where user_type in(5,8);
select *from db_user where user_type between(5,8);
select *from db_user where user_name like '%s%';其中"%"可以匹配一个或多个字符
select *from db_user where user_name l...
分类:
数据库 时间:
2015-05-29 10:10:46
阅读次数:
151
http://www.codeproject.com/Articles/584128/What-is-the-difference-between-equalsequals-and-EqWhen we create any object there are two parts to the obje...
分类:
其他好文 时间:
2015-05-27 15:37:39
阅读次数:
127