cKK

............当你觉得自己很辛苦,说明你正在走上坡路.............坚持做自己懒得做但是正确的事情,你就能得到别人想得到却得不到的东西............

导航

2016年1月22日

摘要: Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are s... 阅读全文

posted @ 2016-01-22 00:43 cKK 阅读(160) 评论(0) 推荐(0) 编辑

2016年1月21日

摘要: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:Given nums = [-2, 0, 3, -5, 2, -1]sumRang... 阅读全文

posted @ 2016-01-21 16:08 cKK 阅读(201) 评论(0) 推荐(0) 编辑

摘要: /*Given an integer, write a function to determine if it is a power of three.Follow up:Could you do it without using any loop / recursion?*/public clas... 阅读全文

posted @ 2016-01-21 14:35 cKK 阅读(132) 评论(0) 推荐(0) 编辑

2016年1月20日

摘要: Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the... 阅读全文

posted @ 2016-01-20 22:01 cKK 阅读(136) 评论(0) 推荐(0) 编辑

2016年1月18日

摘要: 单例设计模式: http://blog.csdn.net/jason0539/article/details/23297037 工厂设计模式: http://blog.csdn.net/hguisu/article/details/7505909 链表的反转:递归与非递归 http://www.cn 阅读全文

posted @ 2016-01-18 19:56 cKK 阅读(155) 评论(0) 推荐(0) 编辑

2016年1月12日

摘要: equals和==的区别 Java中equals和==的区别java中的数据类型,可分为两类: 1.基本数据类型,也称原始数据类型。byte,short,char,int,long,float,double,boolean 他们之间的比较,应用双等号(==),比较的是他们的值。 2.复合数据类型(类 阅读全文

posted @ 2016-01-12 21:47 cKK 阅读(170) 评论(0) 推荐(0) 编辑

摘要: 创建和销毁对象1.考虑用静态工厂方式代替构造器(P7)static factory method:类提供一个公有的返回实例的静态方法。http://blog.csdn.net/mingyunduoshou/article/details/6149758优点:有名称;不必在每次调用他们的时候都新建一个... 阅读全文

posted @ 2016-01-12 21:46 cKK 阅读(234) 评论(0) 推荐(0) 编辑

2016年1月4日

摘要: 一、ServletContext对象(Context域)1.服务器启动的时候,会为每一个webapp创建一个对应的ServletContext对象,他代表该webapp,当服务器停止或将webapp从服务器中移除的时候,就会销毁对应的ServletContext对象2.查阅ServletContex... 阅读全文

posted @ 2016-01-04 12:46 cKK 阅读(1117) 评论(0) 推荐(0) 编辑

2015年12月25日

摘要: 1.response控制码表的3种方法;输出1;2,文件下载3.控制浏览器定时刷新网页(REFRESH)4.控制浏览器缓存当前文档内容5.通过response实现请求重定向。6.setHeader中的一些常见头http://www.cnblogs.com/mingforyou/p/3281945.h... 阅读全文

posted @ 2015-12-25 16:35 cKK 阅读(177) 评论(0) 推荐(0) 编辑

2015年12月11日

摘要: 三范式------------数据库的三范式--------------(1)、要有主键,列不可分(2)、不能存在部分依赖:当有多个字段联合起来作为主键的时候,不是主键的字段不能部分依赖于主键中的某个字段 (多对多设计时)(3)、不能存在传递依赖 最求 不存在冗余数据 阅读全文

posted @ 2015-12-11 11:17 cKK 阅读(141) 评论(0) 推荐(0) 编辑