首页 > 其他 > 详细

[leetcode]67. Add Binary 二进制加法

时间:2018-10-18 10:31:02      阅读:145      评论:0      收藏:0      [点我收藏+]

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 2:

Input: a = "1010", b = "1011"
Output: "10101"

[leetcode]67. Add Binary 二进制加法

原文:https://www.cnblogs.com/liuliu5151/p/9808258.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!