$(function () { var total = 0, height = $(window).height(), memberScroll, cartScroll, proScroll; $.cart = { succ: function (data, status, xhr) { data....
分类:
编程语言 时间:
2015-01-27 13:05:11
阅读次数:
206
题目大意:给你两个字符串,让你求出来两个字符串之间的重复子串长度大于k的有多少个。
解题思路:
先说论文上给的解释:基本思路是计算A的所有后缀和B的所有后缀之间的最长公共前缀的长度,把最长公共前缀长度不小于k的部分全部加起来。先将两个字符串连起来,中间用一个没有出现过的字符隔开。按height值分组后,接下来的工作便是快速的统计每组中后缀之间的最长公共前缀之和。扫描一遍,每遇到一个B的后缀就统...
分类:
编程语言 时间:
2015-01-27 11:09:02
阅读次数:
149
- (void)jiazaitxt{
self.myWebview = [[UIWebView
alloc]initWithFrame:CGRectMake(0,
0, [UIScreen
mainScreen].bounds.size.width, [UIScreen
mainScreen].bounds.size.height+60)];
// myWebVi...
分类:
移动开发 时间:
2015-01-27 11:06:51
阅读次数:
267
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
动态规划
用left[ ]数组纪录该点距离最左边(在矩形内部)的1的距离,用right[ ]数组纪录该点距离最右边(在矩形内部)的1距离,height[ ]...
分类:
其他好文 时间:
2015-01-27 09:32:51
阅读次数:
131
在C++中成员默认是私有的,私有成员是不能被对象直接访问的,要想解决这个问题就需要,需要把这个成员定义为public 或者是定义一个函数的接口#includeclass Humn{private : int height;public : void set_height(int h){ if(h>....
分类:
其他好文 时间:
2015-01-27 00:26:09
阅读次数:
142
成员函数声明与定义在C++中函数有声明部分和定义部分,这样可以更清晰的阅读程序,在一个类的内部声明函数,在类的外部写函数的实现。不然就会报错。#includeclass Humn{private : int height;public : void set_height(int h); int sh...
分类:
其他好文 时间:
2015-01-27 00:24:05
阅读次数:
132
当我们自定义View的时候,在给View赋值一些长度宽度的时候,一般都是在layout布局文件中进行的。,比如android:layout_height="wrap_content",除此之外,我们也可以自己定义属性,这样在使用的时候我们就可以使用形如 myapp:myTextSize="20sp"...
分类:
移动开发 时间:
2015-01-27 00:08:58
阅读次数:
291
Main.xml程序如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertica...
分类:
移动开发 时间:
2015-01-26 22:56:41
阅读次数:
385
line-height样式无效 这是为什么捣鼓了好久都没找到原因 淘宝 亲,请登录 免费注册 手机逛淘宝
分类:
其他好文 时间:
2015-01-26 20:49:31
阅读次数:
306
<!DOCTYPE html> <html> <head> ? ? <meta charset="UTF-8"> ? ? <title></title> ? ? <style> ? ? ? ? div{ ? ? ? ? margin-top: 10px; ? ? ? ? width: 200px; ? ? ? ? height: 150px; ?...
分类:
Web程序 时间:
2015-01-26 19:33:47
阅读次数:
287