首页 > 其他 > 详细

LeetCode 67 _ Add Binary 二进制相加

时间:2019-04-07 20:24:19      阅读:132      评论:0      收藏:0      [点我收藏+]

Descirption:

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/zingg7/p/10666619.html

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