摘要: Problem Definition:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the strin... 阅读全文
posted @ 2015-07-23 22:14 曾可爱 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Problem Definition:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most sign... 阅读全文
posted @ 2015-07-23 21:13 曾可爱 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Problem Definition:Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100".Solution: crack it in a ... 阅读全文
posted @ 2015-07-23 20:15 曾可爱 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Problem Definition:You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distin... 阅读全文
posted @ 2015-07-23 19:25 曾可爱 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Problem Definition:Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.G... 阅读全文
posted @ 2015-07-23 17:02 曾可爱 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Problem Definiton:Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enou... 阅读全文
posted @ 2015-07-23 11:08 曾可爱 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Problem Definition:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symm... 阅读全文
posted @ 2015-07-23 10:40 曾可爱 阅读(180) 评论(0) 推荐(0) 编辑