自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Rijkstra的专栏

https://github.com/Ray137076517

  • 博客(5)
  • 资源 (18)
  • 收藏
  • 关注

原创 【leetcode】3Sum, 3Sum Closest

Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: Elements in a triplet (a,b,c

2016-06-03 20:42:31 350

原创 【leetcode】Implement strStr()

曾经被百度面试官虐的时候碰到过这题。 注意:字符串以'\0'结束,NULL和'\0'不等价。 暴力解决: 外循环:遍历haystack; 内循环:遍历needle,若字符不匹配则跳出,当遍历到needle结束时,返回当前i,若遍历到haystack结束,则不存在匹配子串,返回-1。 int strStr(char* haystack, char* needle) { if

2016-06-03 15:00:08 313

原创 【leetcode】Rotate List

Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. 思路: 将链表尾部和头部连起来,顺便算出链表长度len计算k

2016-06-02 21:36:50 324

原创 【leetcode】Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the length is 3. Given "bbbbb", the answer is "

2016-06-02 21:29:45 316

原创 【leetcode】Minimum Window Substring

class Solution { public: string minWindow(string s, string t) { vector dict(128, 0); for (auto c : t) ++dict[c]; int counter = t.size(); int begin =

2016-06-02 13:49:47 410

重构:改善既有代码的设计.pdf

重构:改善既有代码的设计.pdf

2013-07-02

Machine Learning in Action.pdf

Machine Learning in Action.pdf

2013-07-02

集体智慧编程中文版.pdf

集体智慧编程中文版.pdf

2013-07-02

梦断代码.pdf

梦断代码.pdf

2013-07-02

unix-linux编程实践教程.pdf

unix-linux编程实践教程.pdf

2013-07-02

UNIX编程艺术.pdf

UNIX编程艺术.pdf

2013-07-02

莱昂氏UNIX源代码分析.pdf

莱昂氏UNIX源代码分析.pdf

2013-07-02

The Little Schemer

The Little SchemerThe Little SchemerThe Little Schemer

2013-07-02

修改代码的艺术

修改代码的艺术

2013-07-02

汇编语言第2版

汇编语言第2版

2013-07-02

编程珠玑.pdf

编程珠玑

2013-07-02

Thinking In Java 3rd.Edition

Thinking In Java 3rd.Edition

2013-07-01

空空如也

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

TA关注的人

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