![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leet code 刷刷题
豆浆456
这个作者很懒,什么都没留下…
展开
-
Leet code 67. Add Binary
Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".本质是二进制的加法。得有个进位标志;class Solution {public: string addBinary(string原创 2016-03-15 17:12:25 · 209 阅读 · 0 评论 -
231. Power of Two python
231. Power of TwoGiven an integer, write a function to determine if it is a power of two.Credits:Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.原创 2016-07-03 21:09:15 · 299 阅读 · 0 评论 -
LeetCode: 1. Two Sum python
Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution.Example:Given nu原创 2016-07-31 21:13:49 · 315 阅读 · 0 评论