Problem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then...
分类:
其他好文 时间:
2015-05-14 00:37:26
阅读次数:
108
1)安全性。使用视图隐藏了数据的来源。(2)方便性。在多表连接查询时,可以使用视图提高效率。区别:1、视图是已经编译好的sql语句。而表不是2、视图没有实际的物理记录。而表有。3、表是内容,视图是窗口4、表只用物理空间而视图不占用物理空间,视图只是逻辑概念的存在,表可以及时四对它进行修改,但视图只能...
分类:
其他好文 时间:
2015-05-14 00:39:31
阅读次数:
180
1.2.从客户端cp1发出请求,带参数,“你好”,消息 首先到达应用层,在该层去判断是哪个程序发出的数据,同时在数据前加上app名 其次到达传输层,在该层中在数据上加上tcp段 然后到达ip层,在该层又将ip加在数据前面 然后又到达链路层,在该层在之前的数据前后加上 帧头和帧尾,实际上此时已...
分类:
其他好文 时间:
2015-05-14 00:38:07
阅读次数:
197
Unicode也是一种字符编码方法,不过它是由国际组织设计,可以容纳全世界所有语言文字的编码方案。Unicode的学名是"Universal Multiple-Octet Coded Character Set",简称为UCS。UCS可以看作是"Unicode Character Set"的缩写。U...
分类:
其他好文 时间:
2015-05-14 00:36:06
阅读次数:
131
从http://libgdx.badlogicgames.com/releases/下载zip包并解压,切换到解压后的目录,执行:java -cp gdx.jar;gdx-natives.jar;gdx-backend-lwjgl.jar;gdx-backend-lwjgl-natives.jar;...
分类:
其他好文 时间:
2015-05-14 00:36:34
阅读次数:
156
昨天:测试随机数是否真的为随机数,改变最小数、最大数和两个数都改变,进行测验今天:用户测试,用户体验,找创新思路,下载游戏,玩游戏体验困难:比如练级,比如联机,与蓝牙或者WIFI的连接
分类:
其他好文 时间:
2015-05-14 00:36:45
阅读次数:
127
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2586题目大意:在一个无向树上,求一条链权和。解题思路: 0 | 1 / \ 2 3设dist[i]为i到根0的链和,求法(Dfs过程中dist[v]=dist[u]+e[i].w)对于树中任意两点形.....
分类:
其他好文 时间:
2015-05-14 00:34:06
阅读次数:
148
[.NET领域驱动设计实战系列]专题二:结合领域驱动设计的面向服务架构来搭建网上书店一、前言 在前面专题一中,我已经介绍了我写这系列文章的初衷了。由于dax.net中的DDD框架和Byteart Retail案例并没有对其形成过程做一步步分析,而是把整个DDD的实现案例展现给我们,这对于一些刚刚接....
分类:
其他好文 时间:
2015-05-14 00:34:41
阅读次数:
377
我想站在大神肩膀上...貌似是计算所的一个小伙伴... 总结的很好,看得出来有一定的功底.... 不过对于自己看过了的东西,就不愿意再翻看第二遍了。恰好这本书和项亮那本很像,就直接看这本书了。顺便记记笔记,贴到这里,供更多人参考。一. 协同过滤的推荐 基本思想:用户在过去有相同的偏好,e....
分类:
其他好文 时间:
2015-05-14 00:35:41
阅读次数:
116
有时候有些事情可以分为几个步骤,但是具体每步做什么事可能不一样,这种情况下就是适合使用模板模式. 模板模式就是定义做一件事情需要做哪几步抽象出来,具体的实现交给继承类,然后抽象类里面定义一个执行方法按顺序...
分类:
其他好文 时间:
2015-05-13 23:26:30
阅读次数:
330
SAP对FI模块真的做的非常透彻,所以称FI是SAP R/3 系统的中流砥柱啊,单就增强这块来看,之前有会计凭证的验证和替代,目前又出现了专为FI模块设计的增强方案BTE(OpenFI)。
BTE的设计思路还是比较简单,和BADI有点类似。在标准程序中留有OPEN_FI的出口(以函数OPEN_FI_PERFORM_eventid_type的形式存在),然后提供一个可配置的TABLE,可以在里面针对某个特定的Event维护自己定义的出口函数,标准程序走到这里,如果查出用户定义了出口函数,则会调用,达到增强的目...
分类:
其他好文 时间:
2015-05-13 23:19:04
阅读次数:
3376
shuffle有两种,一种是在内存存储数据,另一种是在本地文件存储数据,两者几乎一致。
以本地文件进行shuffle的过程为例:
mapOutput = shuffleToDisk(mapOutputLoc, input, filename,
compressedLength)
shuffleToDisk函数如下:
private MapOutput ...
分类:
其他好文 时间:
2015-05-13 23:20:21
阅读次数:
331
There is a matrix containing at most 106
elements divided into r rows and c columns. Each element
has a location (x; y) where 1 x r, 1 y c. Initially, all the elements are zero. You need to...
分类:
其他好文 时间:
2015-05-13 23:18:45
阅读次数:
411
RMI(Remote Method Invoke)-远程调用方法,是java的一组用户开发分布式应用程序的API。...
分类:
其他好文 时间:
2015-05-13 23:18:37
阅读次数:
485
Follow up for "Remove Duplicates": What if duplicates are allowed at most twice?
For example,
Given sorted array nums = [1,1,1,2,2,3],
Your function should return length = 5, with the first five el...
分类:
其他好文 时间:
2015-05-13 23:18:20
阅读次数:
331
Maximum Depth of Binary Tree
Total Accepted: 63668 Total Submissions: 141121 My Submissions
Question Solution Given a binary tree, find its maximum depth.The maximum depth is the number of nodes...
分类:
其他好文 时间:
2015-05-13 23:19:39
阅读次数:
302
Description
Richard just finished building his new house. Now the only thing the house misses is a cute little wooden fence. He had no idea how to make a wooden fence, so he decided to order one. S...
分类:
其他好文 时间:
2015-05-13 23:17:20
阅读次数:
299