1.7之前可使用 live ()$("tbody>tr>td:nth-child(1)").live("click",function(){ var zState; if($(this).find(" .zMore").hasClass("fa-plus")) ...
分类:
其他好文 时间:
2015-08-10 11:58:55
阅读次数:
105
有时候我们使用一些现成的源码,二次开发时使用git进行版本管理,空文件夹git是不跟踪的。 为了不破坏其原有的文件结构,我们需要将这些空文件夹添加进git跟踪列表中。 话不多说 ?使用bash命令解决 find?.?-ty...
分类:
其他好文 时间:
2015-08-10 08:17:18
阅读次数:
119
Given an array of size n, find the majority element. The majority element is the element that appears more than ?
n/2 ? times.
You may assume that the array is non-empty and the majority element ...
分类:
其他好文 时间:
2015-08-09 22:39:39
阅读次数:
216
Contains Duplicate
Total Accepted: 26477
Total Submissions: 73478
My Submissions
Given an array of integers, find if the array contains any duplicates. Your function should retu...
分类:
编程语言 时间:
2015-08-09 22:35:58
阅读次数:
146
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum window is "BAN...
Description
bobo has a sequence a 1,a
2,…,a n. He is allowed to swap two
adjacent numbers for no more than k times.
Find the minimum number of inversions after his swaps.
Note: The number...
分类:
其他好文 时间:
2015-08-09 20:50:41
阅读次数:
174
Given n points
on a 2D plane, find the maximum number of points that lie on the same straight line.
分析:
任意一条直线都可以表述为
y = ax + b
假设,有两个点(x1,y1), (x2,y2),如果他们都在这条直线上则有
y1 = kx1 +b...
分类:
其他好文 时间:
2015-08-09 20:47:26
阅读次数:
98
Descriptionbobo has a sequence a1,a2,…,an. He is allowed to swap twoadjacentnumbers for no more than k times.Find the minimum number of inversions aft...
分类:
其他好文 时间:
2015-08-09 20:18:38
阅读次数:
93
题目描述:Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?...
分类:
编程语言 时间:
2015-08-09 20:16:09
阅读次数:
134
http://poj.org/problem?id=1426/*暴力发现最大数目不超过19位,开unsigned long long 水过*//************************************************* Author :Powatr* Creat...
分类:
其他好文 时间:
2015-08-09 17:00:31
阅读次数:
111