나는 이렇게 학습한다/Algorithm & SQL
1129. Bin to Decimal
daco2020
2022. 11. 29. 23:47
Complete the function which converts a binary number (given as a string) to a decimal number.
Solution:
int binToDec(String bin) => int.parse(bin, radix: 2);