posted @ 2016-09-16 23:07 CSU蛋李 阅读(106) 评论(0) 推荐(0) 编辑
摘要:
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文
|
|
摘要:
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文
posted @ 2016-09-16 23:07 CSU蛋李 阅读(106) 评论(0) 推荐(0) 编辑
摘要:
Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a 阅读全文
posted @ 2016-09-16 22:58 CSU蛋李 阅读(140) 评论(0) 推荐(0) 编辑
摘要:
Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 这个题目只要注意各种情况你就成功了一大半,特别要注意的是对进位赋值后可能产生的变化, 阅读全文
posted @ 2016-09-16 22:43 CSU蛋李 阅读(158) 评论(0) 推荐(0) 编辑
摘要:
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 distinct ways can you cl 阅读全文
posted @ 2016-09-16 21:41 CSU蛋李 阅读(85) 评论(0) 推荐(0) 编辑
摘要:
Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, 阅读全文
posted @ 2016-09-16 21:32 CSU蛋李 阅读(76) 评论(0) 推荐(0) 编辑
摘要:
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enough space (size tha 阅读全文
posted @ 2016-09-16 21:19 CSU蛋李 阅读(109) 评论(0) 推荐(0) 编辑
摘要:
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a 阅读全文
posted @ 2016-09-16 20:14 CSU蛋李 阅读(127) 评论(0) 推荐(0) 编辑 |
|