思路1和思路3思路是一样的,也是用0补齐最短字符串左侧,至两字符串等长,如 a = "1111", b = "1",其基本实现就是实现 a = "1111",b = "0001",这样相加,只是代码更简洁: public String addBinary(String a ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results