Design and implement a data structure for Least
Recently Used (LRU) cache. It should support the following
operations:getandset.get(key)- Get the valu...
分类:
其他好文 时间:
2014-05-23 09:59:05
阅读次数:
257
1 ###################R语言中apply类型问题 2
data<-data.frame(x=c(1,2,3,4),y=c(2,3,4,5),z=c(5,6,7,8)) 3
apply(data,2,mean)##apply针对数据框 4 lapply(data,mean)##l....
分类:
移动开发 时间:
2014-05-23 09:42:54
阅读次数:
328
package com.wzh.test.http;import
java.io.ByteArrayOutputStream;import java.io.IOException;import
java.io.InputStream;import java.io.OutputStream;impor...
分类:
编程语言 时间:
2014-05-23 09:32:31
阅读次数:
225
为了方便测试, 我把官方提供的
C:\Users\Public\Documents\Embarcadero\Studio\14.0\Samples\data\FDDemo.sdb 复制了一份到
C:\Temp\FDDemo.sdb.{新建一个 VCL Forms Application, 然后添加如...
分类:
数据库 时间:
2014-05-23 09:15:03
阅读次数:
451
区域即是一个具有名称的高速缓存块,你可以给每一个高速缓存块设置不同的缓存策略。如果没有设置任何的缓存区域,则所有被缓存的对象,都将使用默认的缓存策略。即:对于类而言,区域的名称是类名。如:cn.itcast.domain.Person(一般情况后面会跟一个.data)对于集合而言,区域的名称是类名加...
分类:
其他好文 时间:
2014-05-23 08:53:34
阅读次数:
197
用了DP的方法,还有hashtable 1 import java.util.*; 2 3
public class Solution { 4 public int climbStairs(int n) { 5 Hashtable table =
new Hashtable...
分类:
其他好文 时间:
2014-05-23 08:31:02
阅读次数:
234
一次过,空间复杂度为O(m+n), 下一次做的时候寻找constant space
solution。用boolean array也可以,用bit vector可能会更节省 1 import java.util.*; 2 3 public
class Solution { 4 public...
分类:
其他好文 时间:
2014-05-23 08:30:28
阅读次数:
278
在CRM2011里面,我们可以在页面的控制台里面输入:contentIFrame.Xrm.Page.data.entity.getEntityName();
contentIFrame.Xrm.Page.data.entity.getId();是可以得到当前实体的名称和记录的id而2013里面不行,...
分类:
其他好文 时间:
2014-05-22 05:45:45
阅读次数:
172
一:根据标点符号分行,上图,代码很简单二:代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.L...
一:从字符串总分离文件路径、命名、扩展名,上图二:代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using Syst...