自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 资源 (1)
  • 收藏
  • 关注

原创 Leetcode NO.249 Group Shifted Strings

本题题目要求如下:Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequence:"abc" -> "bcd" -> ... -> "xy

2015-10-24 07:23:55 867

原创 Leetcode NO.270 Closest Binary Search Tree Value

本题题目要求如下:Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target.Note:Given target value is a floating point.You are guaranteed

2015-10-23 11:12:54 823

原创 Leetcode NO.246 Strobogrammatic Number

本题题目要求如下:A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).Write a function to determine if a number is strobogrammatic. The number is

2015-10-23 08:17:37 664

原创 Leetcode NO.252 Meeting Rooms

本题题目要求如下:Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), determine if a person could attend all meetings.For example,Given [[0

2015-10-23 07:44:23 1743

原创 Leetcode NO.243 Shortest Word Distance

本题题目要求如下:Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list.For example,Assume that words = ["practice", "makes", "perfec

2015-10-23 07:19:50 705

原创 Leetcode NO.266 Palindrome Permutation

本题题目要求如下:Given a string, determine if a permutation of the string could form a palindrome.For example,"code" -> False, "aab" -> True, "carerac" -> True.这题是Easy题,所以难度不大,就是用hashmap来存储,不能

2015-10-20 05:41:37 699

原创 Leetcode NO.293 Flip Game

本题题目要求如下:You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take turns to flip twoconsecutive "++" i

2015-10-20 05:21:44 754

原创 Leetcode NO.8 String to Integer (atoi)

本题题目要求如下:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the po

2015-10-13 13:27:03 463

原创 Leetcode NO.125 Valid Palindrome

本题题目要求如下:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a

2015-10-11 05:39:03 501

原创 Leetcode NO.290 Word Pattern

本题题目要求如下:Given a pattern and a string str, find if str follows the same pattern.Examples:pattern = "abba", str = "dog cat cat dog" should return true.pattern = "abba", str = "dog

2015-10-08 04:50:16 393

原创 Leetcode NO.42 Trapping Rain Water

本题题目要求如下:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Given [0,1,0,2,1

2015-10-08 04:19:58 400

原创 Leetcode NO.45 Jump Game II

本题题目要求如下:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.

2015-10-07 08:01:28 334

原创 Leetcode NO.55 Jump Game

本题题目要求如下:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.

2015-10-07 06:58:06 260

原创 Leetcode NO.278 First Bad Version

本题题目要求如下:You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is develop

2015-10-07 05:48:58 345

原创 Leetcode NO.274 H-Index

本题题目要求如下:Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.According to the definition of h-index on

2015-10-05 12:16:09 329

原创 Leetcode NO.53 Maximum Subarray

本题题目要求如下: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,−1,2,1,−5,4],the contiguous subarra

2015-10-05 11:26:36 345

原创 Leetcode NO.232 Implement Queue using Stacks

本题题目要求如下:Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek() -- Get the front

2015-10-05 08:50:15 288

原创 Leetcode NO.223 Rectangle Area

本题题目要求如下:Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.Assum

2015-10-03 07:20:22 291

Algorithm in C++, Part 1 - Part 4

这本书是我们上课时用的教材,质量应该还算不错吧,因为没有看完,只是看上课需要的部分,所以无权评价全部东西。但是本书以及本书作者还是比较有名的,学算法的肯定都知道的。MOOC上讲课的普林斯顿大牛 相比较于传说中经典的Intro to Algorithm,真本书更侧重于算法的C++实现,而非理论,对于纯CS的学生,可以绕道。。但是对于工程类专业,这本书应该是更好的选择。 P.S.如果谁有part 5图论,跟我联系下,求分享。。。另外,如果确实是跟我积分一样少的穷人,联系我,给个邮箱,我发给你。。

2014-02-23

空空如也

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

TA关注的人

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