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...
分类:
其他好文 时间:
2014-11-19 20:16:31
阅读次数:
152
背景:
上一篇博文对DICOM中的网络传输进行了介绍,主要参照DCMTK Wiki中的英文原文。通过对比DCMTK与fo-dicom两个开源库对DICOM标准的具体实现,对理解DICOM标准有一个更直观的认识。此篇博文是对上一篇博文的补充,因为专栏前面的示例大多是利用DCMTK工具包来进行的,此次借着分析fo-dicom源码结构的机会,参照fo-dicom的README.md,给出C-ECHO 和C-STORE服务的具体实现。在实现的同时给出DICOM3.0标准中的相关介绍,帮助我们理解。...
分类:
其他好文 时间:
2014-11-19 01:43:37
阅读次数:
494
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring
without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2014-11-19 01:35:20
阅读次数:
199
非常高兴。int vec_rotate(char *vec,int rotdist, int length) { int i,j,k,times; char t; times = gcd(rotdist,length); printf("%d\n",times); fo...
分类:
其他好文 时间:
2014-11-19 00:25:42
阅读次数:
111
变量命名:
1)必须以字符或下划线开头
2)以单下划线开头(_fo)表示不能直接访问的类属性,需要类提供的接口进行访问
3)以双下划线开头(__foo)的代表类的私有成员
4)以双下划线开头(__foo__)和结尾的代表python中特殊方法专用的标识,例如__init__()代表类的构造函数
全局变量
关键字 global
_num = 12
def myfunction ()...
分类:
编程语言 时间:
2014-11-18 11:51:32
阅读次数:
208
有时加入域的计算机无法连接到之前的域了,只能强制退出域了,有两个前提条件:1、断开网络,就是拔掉网线或者禁用网卡。2、使用本地管理员登陆。然后命令行执行如下命令即可:netdom remove 机器名 /domain:域名 /userd:本地管理员用户名 /passwordd:本地管理员密码 /fo...
分类:
其他好文 时间:
2014-11-18 06:52:43
阅读次数:
248
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-11-17 22:29:25
阅读次数:
242
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2014-11-17 15:29:56
阅读次数:
198
方法一:var jmz = {};jmz.GetLength = function(str) { ///获得字符串实际长度,中文2,英文1 ///要获得长度的字符串 var realLength = 0, len = str.length, charCode = -1; fo...
分类:
Web程序 时间:
2014-11-17 13:51:04
阅读次数:
174
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...
分类:
其他好文 时间:
2014-11-16 07:06:02
阅读次数:
151