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 i and j is at most k.分析:用m...
分类:
其他好文 时间:
2015-06-09 17:23:48
阅读次数:
124
一、什么是引用类型在Java中引用类型包括三种:类、抽象类、接口。二、引用类型作为形参使用1、类作为形参/** * 类作为形参,实际传递的是该类的对象 */class Student { public void study() { System.out.println("Good...
分类:
编程语言 时间:
2015-06-09 16:48:34
阅读次数:
133
Problem DescriptionFarmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculate...
分类:
其他好文 时间:
2015-06-09 15:36:36
阅读次数:
106
#include #include #include using namespace std;int main(){ // freopen("acm.acm","r",stdin); // freopen("out.acm","w",stdout); string s; ...
分类:
其他好文 时间:
2015-06-09 15:26:02
阅读次数:
127
函数In[24]:deffoo():
....:return1
....:
In[25]:foo()
Out[25]:12.函数的作用域参考资料:http://www.simeonfranklin.com/blog/2012/jul/1/python-decorators-in-12-steps/
分类:
编程语言 时间:
2015-06-09 14:00:35
阅读次数:
354
九大内置对象:
out
等同于response.geWriter(),用来向客户端发送数据的。
config
对应于jsp生成的Servlet中的ServletConfig;
page
当前JSP页面的“this”,即当前对象,引用为Object类型;
pageContext
页面...
分类:
Web程序 时间:
2015-06-09 13:58:02
阅读次数:
128
栈是存放对象的一种特殊容器,在插入与删除对象时,这种结构遵循后进先出( Last-in-first-out,LIFO)的原则。java本身是有自带Stack类包,为了达到学习目的已经更好深入了解stack栈,自己动手自建java stack类是个很好的学习开始:自建Java Stack 类Stack 类:package com.stack;import java.util.ArrayList;
im...
分类:
编程语言 时间:
2015-06-09 09:57:58
阅读次数:
166
jQuery在使用grunt,bootstrap在使用grunt,百度UEditor在使用grunt,你没有理由不学、不用!1. 前言 各位web前端开发人员,如果你现在还不知道grunt或者听说过、但是不会熟练使用grunt,那你就真的真的真的out了(三个“真的”重复,表示重点)。至于...
分类:
Web程序 时间:
2015-06-09 09:37:54
阅读次数:
153
-- 根据员工编号查询员工姓名 带返回的参数CREATE OR REPLACE PROCEDURE findEmp(empnoIn emp.empno%TYPE, enameOut OUT emp.ename%TYPE) ISBEGIN SELECT ename INTO enameOu...
分类:
数据库 时间:
2015-06-09 08:26:01
阅读次数:
101
■在A *方法总结 Summary of the A* Method ? 好了,现在你通过解释已经走了,让我们奠定了一步一步的方法,在同一个地方: Okay, now that you have gone through the explanation, let‘s lay out the step-by-...
分类:
其他好文 时间:
2015-06-09 06:23:15
阅读次数:
121