Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2015-06-17 23:18:38
阅读次数:
155
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-06-17 14:57:56
阅读次数:
111
XSL :扩展样式表语言(EXtensible Stylesheet Language)。XSL 包括三部分:XSLT:一种用于转换 XML 文档的语言。XPath:一种用于在 XML 文档中导航的语言。XSL-FO:一种用于格式化 XML 文档的语言。XSLT 是一种用于将 XML 文档转换为 X...
分类:
其他好文 时间:
2015-06-17 10:57:29
阅读次数:
122
Remove all elements from a linked list of integers that have value val.
Example
Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6
Return: 1 --> 2 --> 3 --> 4 --> 5
/**
* Definition fo...
分类:
其他好文 时间:
2015-06-16 17:02:57
阅读次数:
129
背景:近期由于项目需要,开始频繁接触基于Java的DICOM标准实现库,即dcm4che。与以往使用的dcmtk和fo-dicom不同的是,dcm4che工具包是整个dcm4che项目的一部分,只作为解析DICOM格式的工具包被dcm4chee使用,而dcm4chee是一种托管在JBoss AS中的WEB应用。其内部添加了诸多的业务层的逻辑,在实际应用中遇到了几个问题,记录下来,以备后续仔细分析。...
分类:
其他好文 时间:
2015-06-15 00:17:29
阅读次数:
308
WebSocket接口中有一个直接发送对象给页面的方法:
void javax.websocket.RemoteEndpoint.Basic.sendObject(Object arg0) throws IOException, EncodeException
如果直接使用
client.session.getBasicRemote().sendObject(obj);
就会出现以下错误:
javax.websocket.EncodeException: No encoder specified fo...
分类:
编程语言 时间:
2015-06-14 13:52:32
阅读次数:
2479
线程互斥:实质某一资源同时只允许一个访问者对其进行访问,具有唯一性和排他性。 import threading import time g_lock = threading.Lock() def func(): global tmp global g_lock g_lock.acquire() fo...
分类:
编程语言 时间:
2015-06-13 15:34:19
阅读次数:
124
开始环境搭配了,先说说对JSP的认识吧!JSP全名为Java Server Pages,中文名叫java服务器页面,是一种动态网页技术标准!就我而言,就是人们为了更方便管理网站后台,处理事情(业务逻辑)的技术标准! 现在开始搭配环境:我选择的是jdk1.7+Tomcat7+eclipse fo...
分类:
Web程序 时间:
2015-06-13 01:04:44
阅读次数:
193
ArcGIS Runtime SDK for Android 10.2.5版本在年前发布,其中一个重大的变化是:新版本使用了新的开发环境,在10.2.5版本中Esri使用了官方提供的新的Android开发工具Android Studio,跟上时代的步伐,而且ArcGIS Runtime SDK fo...
分类:
移动开发 时间:
2015-06-12 14:40:51
阅读次数:
202
In Java thread topic, the task to be executed and the thread to drive the taskare two concepts should be clarified. The working process is like the fo...
分类:
编程语言 时间:
2015-06-12 11:23:41
阅读次数:
137