摘要: 题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sing... 阅读全文
posted @ 2015-09-02 16:02 双音节的秋 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two... 阅读全文
posted @ 2015-09-02 10:12 双音节的秋 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest... 阅读全文
posted @ 2015-08-31 11:27 双音节的秋 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / ... 阅读全文
posted @ 2015-08-30 15:51 双音节的秋 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目:You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl... 阅读全文
posted @ 2015-08-22 09:53 双音节的秋 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目:Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled wi... 阅读全文
posted @ 2015-08-16 15:34 双音节的秋 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't ... 阅读全文
posted @ 2015-08-16 11:41 双音节的秋 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo... 阅读全文
posted @ 2015-08-16 10:36 双音节的秋 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.其实题目... 阅读全文
posted @ 2015-08-16 09:47 双音节的秋 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 解决办法:在setting.py 中找到,TEMPLATES模块,在其中的DIR中加入自己template模块的路径即可。 阅读全文
posted @ 2015-08-13 09:45 双音节的秋 阅读(354) 评论(0) 推荐(0) 编辑