[LeetCode/릿코드] 67. Add Binary
문제 풀이 1 2 3 4 5 6 7 8 9 10 11 import java.math.BigInteger; class Solution { public String addBinary(String a, String b) { BigInteger a1 = new BigInteger(a, 2); BigInteger b1 = new BigInteger(b, 2); BigInteger sum = a1.add(b1); return sum.toString(2); } } Colored by Color Scripter cs