[leetcode][67] Add Binary
来源:互联网 发布:domori巧克力知乎 编辑:程序博客网 时间:2024/06/06 01:12
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100"
.
class Solution(object): def addBinary(self, a, b): """ :type a: str :type b: str :rtype: str """ a_int = int(a,2) b_int = int(b,2) return bin(a_int+b_int)[2:]
0 0
- [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
- Leetcode# 67 Add Binary
- leetcode 67: Add Binary
- leetcode-67-Add Binary
- Leetcode#67||Add Binary
- [Leetcode]#67 Add Binary
- leetcode 67Add Binary
- Leetcode 67:Add Binary
- leetcode 67 Add Binary
- [leetcode 67] Add Binary
- TEC1401.Report开发技术总结 - 第六章 使用BI Publisher开发报表-创建XML数据源(1/5)
- Hession与Webservice的区别
- 数据结构:二叉查找树的相关操作
- JavaScript 运行机制详解:再谈Event Loop
- [leetcode][83]Remove Duplicates from Sorted List
- [leetcode][67] Add Binary
- Binary Tree Right Side View
- 学习的文档位置
- TEC1401.Report开发技术总结 - 第七章 使用BI Publisher开发报表-创建一个简单的RTF模板(2/5)
- TEC1401.Report开发技术总结 - 第八章 使用BI Publisher开发报表-在EBS应用中部署BIP报表(3/5)
- Leetcode 99. Recover Binary Search Tree (Hard) (cpp)
- [leetcode][155] Min Stack
- Spring架构图
- TEC1401.Report开发技术总结 - 第九章 使用BI Publisher开发报表-使用BI Publisher创建RTF模板的语法(4/5)