自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 676

原创 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 697

原创 矩形切割

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 1525

转载 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 1206

转载 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 1043

转载 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 798

原创 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 655

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除