<LeetCode><Easy> 67 Add Binary
来源:互联网 发布:一口吃个胖子 知乎 编辑:程序博客网 时间:2024/05/21 08:47
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100"
.
#Python2 48ms
class Solution(object): def addBinary(self, a, b): """ :type a: str :type b: str :rtype: str """ return bin(int(a,2)+int(b,2))[2:]
0 0
- [Leetcode 67, easy] Add Binary
- 【LeetCode】(67)Add Binary (Easy)
- <LeetCode><Easy> 67 Add Binary
- 【leetcode】Add Binary[easy]
- Leetcode OJ 67 Add Binary [Easy]
- LeetCode-67-Add Binary(数字/字符串处理)-Easy
- Easy 67题 Add Binary
- Leetcode 67. Add Binary (Easy) (cpp)
- LeetCode-Easy刷题(14) Add Binary
- [leetcode 67] Add Binary
- [LeetCode 67]Add Binary
- leetcode-67 Add Binary
- leetcode || 67、Add Binary
- LeetCode 67 Add Binary
- Add Binary - LeetCode 67
- LeetCode---(67) Add Binary
- leetcode[67]:Add Binary
- leetcode 67 Add Binary
- 石子合并问题--动态规划;贪心
- Hibernate数据绑定
- Objective-C中的instancetype和id关键字
- 1028. 人口普查(20)
- android之animation
- <LeetCode><Easy> 67 Add Binary
- iOS控件 不能够交互的几种情况
- java编程 eclipse环境变量的配置
- linux读书笔记1
- 回调函数的应用
- 读写data目录下的文件
- 尺取法 Codeforces580B Kefa and Company
- MD5加密
- BroadcastReceiver之动态注册监听网络状态变化