五:Java之Vector类专题
据说期末考试要考到Vector 这个类,出于复习需要在这里就要好好整理下这个类了。...
分类:
编程语言 时间:
2014-06-30 09:54:44
阅读次数:
234
昨天几名新同事做入职测评,在讨论如何学习提高工作技能时,大家要求推荐几本开发方面的书籍。
回家整理了一下,特推荐如下:
1、开发基础
重点推荐(前端):《编写高质量代码-web前端开发修炼之道》
推荐原因:前端开发入门提高的好书,看完它,不会使你立刻成为前端高手,但是至少能让你明白前端(CSS、JS)是如何组织的,前端到底会有什么共性的问题,以及这些问题是如何解决的。为进一步看懂一些主流框...
分类:
其他好文 时间:
2014-06-30 08:27:28
阅读次数:
152
题目
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
方法
和上题方法一样,使用回溯法,结构基本相同,只需要返回数量。
public i...
分类:
其他好文 时间:
2014-06-30 06:24:22
阅读次数:
273
1.在IOS中绑定类
@interface ClassName : ExtendedClassName那么在java中就应该是:
@NativeClass
public class GADBannerView extends UIView {
}
这里一般形式是:
@NativeClass
public class GADBannerView extends NSObject {
}...
分类:
其他好文 时间:
2014-06-30 06:06:58
阅读次数:
288
题目
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time
complexity should be O(log (m+n)).
方法
转换为寻找第k大的数。
...
分类:
其他好文 时间:
2014-06-30 06:05:58
阅读次数:
261
题目
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return all distinct solutions to the n-que...
分类:
其他好文 时间:
2014-06-30 00:34:18
阅读次数:
188
PS: 在看三层架构的时候,找的了一个我感觉不错的材料,里面有如下一张图,打算详细的解释一下这张图,也总结一下三层的知识...
分类:
其他好文 时间:
2014-06-30 00:15:45
阅读次数:
277
ajax json 表格排序,分页,自定义每页数量 点击表头可以排序,按照升序或者降序,另外支持多列排序设置每页数量演示 XML/HTML Codetable id='example3'> thead> tr> th>IDth> th>First nameth> th>Last nameth> th>Gradeth> th>Grade 2th> th>Efficie...
分类:
Web程序 时间:
2014-06-30 00:13:41
阅读次数:
262
这是一个先进实用的架构,采用了haproxy、lvs、keeplived进行负载均衡,使用couchbase、squid进行缓存,使用mysql数据库主从方式,使用lucene搜索等技术,提供了HA、HP的服务性能,值得采纳。对用JAVA开发的项目来说,根据“成熟稳定、先进科学、实用可靠“的原则,可以使用这样一种架构,采用多个集群来保证系统的高性能、高可靠性、伸缩性、可维护性和安全的需要,服务器可以线性扩展,使用开源免费软件和廉价服务器,提供极高的性价比。...
分类:
其他好文 时间:
2014-06-29 23:11:10
阅读次数:
729
很多时候要用到android端调用webservice服务, 下面例子就是调用webservice 以及对流的多种方式处理;
package com.example.android_webservice;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOExcep...
分类:
移动开发 时间:
2014-06-29 22:06:29
阅读次数:
242