반응형
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);
반응형
'나는 이렇게 학습한다 > Algorithm & SQL' 카테고리의 다른 글
1201. Is the string uppercase? (0) | 2022.12.01 |
---|---|
1130. Square(n) Sum (0) | 2022.11.30 |
1128. Hex to Decimal (0) | 2022.11.28 |
1127. Two to One (0) | 2022.11.27 |
1126. How good are you really? (0) | 2022.11.26 |