摘要:
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off ... 阅读全文
摘要:
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 two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100";思路: 对齐, 计算当前位和进位;如果位较长,让我想到了先行进位加法器,不过这里的计算不... 阅读全文