- 博客(13)
- 资源 (3)
- 收藏
- 关注
原创 LeetCode-174.Dungeon Game
https://leetcode.com/problems/dungeon-game/The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a
2016-07-22 11:22:21 437
原创 微软2016校园招聘:#1239 : Fibonacci
http://hihocoder.com/problemset/problem/1239?sid=822524#1239 : Fibonacci时间限制:10000ms单点时限:1000ms内存限制:256MB描述Given a sequence {an}, how many non-empty sub-sequence
2016-07-20 11:30:39 484
原创 华为2016校园招聘:简单错误记录
http://www.nowcoder.com/questionTerminal/67df1d7889cf4c529576383c2e647c48[编程题]简单错误记录开发一个简单错误记录功能小模块,能够记录出错的代码所在的文件名称和行号。 处理:1.记录最多8条错误记录,对相同的错误记录(即文件名称和行号完全匹配)只记录一条,错误计数增加;(文件所在的目录不同,文
2016-07-20 11:00:15 628
原创 LeetCode-33.Search in Rotated Sorted Array
https://leetcode.com/problems/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).
2016-07-18 22:38:20 382
原创 2016微软探星夏令营:#1341 : Constraint Checker
http://hihocoder.com/problemset/problem/1341?sid=827699#1341 : Constraint Checker时间限制:10000ms单点时限:1000ms内存限制:256MB描述Given a set of constraints like 0NM and values
2016-07-18 20:12:06 1586 1
原创 hihocoder-#1338 : A Game
http://hihocoder.com/problemset/problem/1338?sid=827401#1338 : A Game时间限制:10000ms单点时限:1000ms内存限制:256MB描述Little Hi and Little Ho are playing a game. There is an in
2016-07-18 17:15:28 679
原创 LeetCode-336.Palindrome Pairs
https://leetcode.com/problems/palindrome-pairs/Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e.words[
2016-07-16 21:24:50 1309
原创 LeetCode-211.Add and Search Word - Data structure design
https://leetcode.com/problems/add-and-search-word-data-structure-design/Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word)
2016-07-16 14:23:34 447
原创 LeetCode-208.Implement Trie (Prefix Tree)
https://leetcode.com/problems/implement-trie-prefix-tree/Implement a trie with insert, search, and startsWith methods.Note:You may assume that all inputs are consist of lowercase letters
2016-07-16 12:46:48 420
原创 LeetCode-179.Largest Number
https://leetcode.com/problems/largest-number/Given a list of non negative integers, arrange them such that they form the largest number.For example, given [3, 30, 34, 5, 9], the largest form
2016-07-14 12:58:59 360
原创 LeetCode-233.Number of Digit One
https://leetcode.com/problems/number-of-digit-one/Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n =
2016-07-12 15:54:14 436
原创 剑指Offer-面试题27:二叉搜索树与双向链表
题面:《剑指Offer》P151 / 牛客网输入一棵二叉搜索树,将该二叉搜索树转换成一个排序的双向链表。要求不能创建任何新的结点,只能调整树中结点指针的指向。如如果不考虑箭头,可以看到4 6 8 10 12 14 16是树的中序遍历因此可以借用中序遍历的方法进行修改/*struct TreeNode { int val; struct TreeNode *le
2016-07-06 21:29:11 434
原创 LeetCode-138.Copy List with Random Pointer
题面:《剑指Offer》P147 / 复杂链表的复制输入一个复杂链表(每个节点中有节点值,以及两个指针,一个指向下一个节点,另一个特殊指针指向任意一个节点)先忽略random结点,复制原始链表,并将每个新复制的节点
2016-07-02 21:05:52 421
JPEG压缩神器
2014-12-16
PDFEdit编辑器
2012-10-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人