Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2014-06-27 16:53:38
阅读次数:
262
MVC里自己建立数据库访问,出现数据库错误:Model compatibility cannot be checked because the database does not containmodel metadata. Model compatibility can only be check...
分类:
数据库 时间:
2014-06-27 14:52:21
阅读次数:
236
MVVM的全称是Model View ViewModel,这种架构模式最初是由微软的MartinFowler作为微软软件的展现层设计模式的规范提出,它是MVC模式的衍生物,MVVM模式的关注点在能够支持事件驱动的UI开发平台,例如HTML5,[2][3]WindowsPresentation Fo....
分类:
编程语言 时间:
2014-06-27 14:32:04
阅读次数:
270
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-06-27 12:48:10
阅读次数:
238
排序是算法学习中最基本的问题。1.平均时间复杂度均为O(N2)的排序1.1 插入排序插入排序对少量元素的排序非常有效。工作机制就像打牌一样,为了将牌插入到已排好序的牌中,需要将牌与手中的牌从右向左进行比较。def insertionSort(alist): n=len(alist) fo...
分类:
编程语言 时间:
2014-06-27 12:07:54
阅读次数:
338
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A
man, a plan, a canal: Panama" is a palindrome.
"race
a car" is no...
分类:
其他好文 时间:
2014-06-27 10:36:41
阅读次数:
183
在做ADFS部署过程中配置ADFS服务时遇到如下问题
检查系统日志错误日志如下,很明显“NT SERVICE\MSSQL$MICROSOFT##WID”这个账户不在log on as a aservice中
再来看下这个账户是要干啥,我们在服务里找到了这个账号,他需要启动Windows Internal Database 这个服务,在配置时仔细看界面的提示就知道是需要创建数据库...
分类:
数据库 时间:
2014-06-27 07:52:15
阅读次数:
235
今天重写 -(id) initwithId:(NSInteger *)word_id word:(NSString *)word detail:(NSString *)detail方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super in...
分类:
移动开发 时间:
2014-06-26 15:17:17
阅读次数:
638
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-06-26 14:42:23
阅读次数:
164
SDK和ADT为22.6.2版本
工程为4.4.2
今天在写Android代码的时候,往工程中加入了几张图片,然后在代码中使用R.drawable调用时,一直报错 cannot be resolved or is not a field
然后我查看了gen目录下的R.java文件,发现里面已经有我加入的图片资源ID了,觉得很奇怪,一般是无法生成R.java文件的时候才会出现这种现象啊
在网...
分类:
移动开发 时间:
2014-06-26 11:34:21
阅读次数:
246