posts - 222,comments - 49,trackbacks - 0

posted @ 2017-03-09 11:50 Shirlies 阅读 (3409) 评论 (0) 编辑
摘要:题目: 输入一棵二叉树,求该树的深度。从根结点到叶结点依次经过的结点(含根、叶结点)形成树的一条路径,最长路径的长度为树的深度。 链接: 阅读全文
posted @ 2016-09-09 14:34 Shirlies 阅读 (140) 评论 (0) 编辑
摘要:题目 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity 阅读全文
posted @ 2016-08-10 15:15 Shirlies 阅读 (127) 评论 (0) 编辑
摘要:题目 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lon 阅读全文
posted @ 2016-08-08 15:03 Shirlies 阅读 (110) 评论 (0) 编辑
摘要:题目: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the 阅读全文
posted @ 2016-08-04 14:47 Shirlies 阅读 (173) 评论 (0) 编辑
摘要:题目 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 @ 2016-07-20 20:36 Shirlies 阅读 (74) 评论 (0) 编辑
摘要:题目: 228. Summary Ranges 228. Summary Ranges Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1 阅读全文
posted @ 2016-07-16 15:20 Shirlies 阅读 (137) 评论 (0) 编辑
摘要:题目: 273. Integer to English Words Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 阅读全文
posted @ 2016-07-16 13:17 Shirlies 阅读 (168) 评论 (0) 编辑
摘要:题目: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive in 阅读全文
posted @ 2016-07-11 09:00 Shirlies 阅读 (227) 评论 (0) 编辑
摘要:题目 Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT 链接 阅读全文
posted @ 2016-07-09 13:54 Shirlies 阅读 (215) 评论 (1) 编辑