반응형
Determine if the given character is a digit or not. Example For symbol = '0', the output should be isDigit(symbol) = true; For symbol = '-', the output should be isDigit(symbol) = false. |
code>>
bool isDigit(char symbol) {
return isdigit(symbol);
}
반응형
'알고리즘 > codefights' 카테고리의 다른 글
50>chessKnight (0) | 2017.11.04 |
---|---|
49>lineEncoding (0) | 2017.11.04 |
47>isMAC48Address (0) | 2017.11.04 |
46>electionsWinners (0) | 2017.11.04 |
45>buildPalindrome (0) | 2017.11.03 |