
算法分析与设计
weixin_40624054
这个作者很懒,什么都没留下…
展开
-
58. Length of 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 does not exist, return 0.Note: A word is defined...原创 2019-03-30 18:57:13 · 102 阅读 · 0 评论 -
67. Add Binary
Given two binary strings, return their sum (also a binary string).The input strings are both non-empty and contains only characters 1 or 0.Example 1:Input: a = “11”, b = “1”Output: “100”Example ...原创 2019-03-31 10:29:52 · 95 阅读 · 0 评论 -
70. Climbing Stairs[动态规划]
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 climb to the top?Note: Given n will be a positive i...原创 2019-04-01 21:13:17 · 142 阅读 · 0 评论