![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
youqika
这个作者很懒,什么都没留下…
展开
-
leetcode Single Number II
http://www.cnblogs.com/daijinqiao/p/3352893.htmlPS:对于这种作者,孤只想默默点个赞题目描述:给定一个包含n个整数的数组,除了一个数出现一次外所有的整数均出现三次,找出这个只出现一次的整数。题目来源:http://oj.leetcode.com/problems/single-number-ii/题目分析:对于除出现一转载 2013-11-26 10:52:04 · 611 阅读 · 0 评论 -
lru cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.get(key) - Get the value (will always be positive) of the key if原创 2014-01-16 23:10:03 · 629 阅读 · 0 评论 -
Rotate Image
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?class Solution {public:void rotate(vector > &ma原创 2013-12-24 20:54:19 · 515 阅读 · 0 评论 -
最长回文子串的manacher算法
http://leetcode.com/2011/11/longest-palindromic-substring-part-ii.htmlLongest Palindromic Substring Part IINovember 20, 2011 in stringGiven a string S, find the longest palindr转载 2014-02-11 15:00:37 · 626 阅读 · 0 评论 -
Combination Sum II
https://oj.leetcode.com/problems/combination-sum-ii/Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inC where the candidate numbers sums to原创 2014-10-07 19:59:33 · 507 阅读 · 0 评论 -
Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target value to search. If found in the array return its原创 2014-11-19 23:18:10 · 485 阅读 · 0 评论