上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页
摘要: 题目: Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should 阅读全文
posted @ 2015-11-22 23:20 YRB 阅读(953) 评论(0) 推荐(0) 编辑
摘要: 题目: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For 阅读全文
posted @ 2015-11-22 12:47 YRB 阅读(1391) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you ca... 阅读全文
posted @ 2015-11-21 03:49 YRB 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: 题目: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so 阅读全文
posted @ 2015-11-20 12:31 YRB 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially ad... 阅读全文
posted @ 2015-11-20 03:27 YRB 阅读(1382) 评论(0) 推荐(0) 编辑
摘要: 题目: Design a data structure that supports the following two operations: search(word) can search a literal word or a regular expression string containi 阅读全文
posted @ 2015-11-20 01:34 YRB 阅读(1670) 评论(0) 推荐(0) 编辑
摘要: 题目: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you ha 阅读全文
posted @ 2015-11-19 13:09 YRB 阅读(1387) 评论(0) 推荐(0) 编辑
摘要: 分硬币问题是一个很有意思的问题,一般可以用recursive或者dp来解决。Reference里面acm之家的文章分析得很好,下面我自己再重复一边这个过程。这道题也可以联想到其他dp过程。 题目很简单: 给定一堆硬币coins[], 数量管够,硬币有m种不同的面值,求组成 n 元钱有多少种不同的方法 阅读全文
posted @ 2015-11-06 05:17 YRB 阅读(821) 评论(0) 推荐(0) 编辑
摘要: 1. Two Sum 2. Add Two Numbers 3. Longest Substring Without Repeating Characters 4. Median of Two Sorted Arrays 5. Longest Palindromic Substring 6. Zig 阅读全文
posted @ 2015-10-10 22:05 YRB 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: 四五年前就想好好学习Python和Javasctipt,一直拖到今日。 前阵投了些简历,不少公司都问到,除了现有的东西还会不会Python和Javascript。痛定思痛, 要快速了解一下语法,数据结构,常用发。以后再慢慢理解。 阅读全文
posted @ 2015-10-10 21:42 YRB 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页