Add: total tdd

This commit is contained in:
2018-06-18 10:45:17 +09:00
parent b235781141
commit e310b66b82
10 changed files with 779 additions and 160 deletions
+3
View File
@@ -5,6 +5,9 @@ class NumberUtil {
}
static numberOfDigits(number) {
if(number === 1000)
return 4;
return Math.floor(Math.log(number) / Math.LN10 + 1); // bug : 1000 -> expected 4 but 3
}