- 博客(7)
- 收藏
- 关注
转载 Programming Collective Intelligence
user-based collaborative filteringitem-based collaborative filtering: The general technique is to precompute the most similar items for each item. Then, when you wish to make recommendations to a us
2014-01-29 20:23:51 681
原创 LeetCode (P)
Pow(x, n) Total Accepted: 5493 Total Submissions: 21464My SubmissionsImplement pow(x, n).class Solution { double power(double x, long long n) { if (n < 0) return 1 /
2014-01-12 12:16:58 700
原创 矩形切割
Previous related blog: http://blog.csdn.net/lllcfr/article/details/7567045先判断是否重叠,然后切割.注意答案要求的是哪一部分.1. 二维矩形 USACO 5-3-window#include #include #include #include #include #include #i
2014-01-11 21:01:39 1537
转载 k-th Smallest Element of Two Sorted Arrays
http://nriverwang.blogspot.hk/2013/04/k-th-smallest-element-of-two-sorted.htmlProblem Description:Given two sorted arrays A and B of size m and n, respectively. Find the k-th (1 smalle
2014-01-10 19:45:54 1213
转载 Longest Repeated Substring
http://nriverwang.blogspot.hk/This problem is from codeeval.com.Problem Description:You are to find the longest repeated substring in a given text. Repeated substrings may not overla
2014-01-10 14:51:42 1045
转载 Optimizing C++
http://en.wikibooks.org/wiki/Optimizing_C%2B%2BKeep vectors capacityTo empty a vector x object without deallocating its memory, use the statement x.resize(0);; to empty it and deallo
2014-01-08 16:08:45 803
原创 LeetCode (V)
Valid Palindrome Total Accepted: 4292 Total Submissions: 20224My SubmissionsGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
2014-01-02 19:14:09 657
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人