Use lMax get the maximum value of a sub SINGLE branch (left branch or right branch or just current node).Use gMax get the maximum value of the whole s...
分类:
其他好文 时间:
2015-03-18 08:56:01
阅读次数:
190
谈到单例模式,我们立马会想到饿汉式和懒汉式加载,所谓饿汉式就是在创建类时就创建好了实例,懒汉式在获取实例时才去创建实例,即延迟加载。饿汉式:Java代码package com.bijian.study;public class Singleton { private static Single...
分类:
编程语言 时间:
2015-03-17 23:21:23
阅读次数:
277
SSO (Single Sign-on) 顾名思义就是几个子项目共用一个登录点. 原理简单来说就是服务端session 共享, 客户端跨域cookies.实现非常简单,protected/config/main.php中修改session配置即可代码如下: 1 $host = explode('.'...
分类:
其他好文 时间:
2015-03-17 14:07:16
阅读次数:
197
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2015-03-17 02:00:44
阅读次数:
102
一个整数数列,除其中一个数以外,其他数都出现3次;试找出这个数 -Single Number II.
分类:
其他好文 时间:
2015-03-16 16:20:42
阅读次数:
122
可以在一个数组数据结构中存储同一类型的多个变量。 通过指定其元素的类型声明数组type []arrayName; 1 class TestArraysClass 2 { 3 static void Main() 4 { 5 // Declare a single-d...
分类:
编程语言 时间:
2015-03-16 14:23:41
阅读次数:
150
系统:mac 10.9.5 编辑器:xcode 6.1 语言:swift新建一个single view application,将use core Data勾选。在xcode最左侧会有一个xxx.xcdatamodeld文件,点击添加一个entity,并双击重命名为Person。然后点击添加属性.....
分类:
移动开发 时间:
2015-03-15 23:29:57
阅读次数:
2761
单点登录(Single Sign On),简称为SSO,是目前比较流行的企业业务整合的解决方案之一。SSO的定义是在多个应用系统中,用户只需要登录一次就可以访问所有相互信任的应用系统。
CAS
(Central Authentication Service),中央认证服务。CAS(Central Authentication Service)是一款不错的针对 Web
应用的单点登录框架...
分类:
其他好文 时间:
2015-03-15 15:19:09
阅读次数:
207
近日须要不同的编码,关于上述编码,一直迷迷糊糊,查了些资料,总算大致了解了,以下全是从网上搜来的:1.ASCII和Ansi编码 字符内码(charcter code)指的是用来代表字符的内码.读者在输入和存储文档时都要使用内码,内码分为 单字节内码 -- Single-Byte charact...
分类:
其他好文 时间:
2015-03-15 15:14:31
阅读次数:
151
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2015-03-15 07:06:35
阅读次数:
100