aboutsummaryrefslogtreecommitdiff
path: root/num_even_nums.cpp
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2025-01-29 11:46:16 -0700
committerJack Sangdahl <[email protected]>2025-01-29 11:46:16 -0700
commit2de9d2dce0fd4de524961ad5188a95410f4432c2 (patch)
tree0da068bf95592f39f2dd4f135b0e73b689df27d0 /num_even_nums.cpp
parentad25ada54a68851b935f52f9d1bc4ec969583205 (diff)
downloadleetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.tar.gz
leetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.zip
chore: Fix vvd usages
Diffstat (limited to 'num_even_nums.cpp')
-rw-r--r--num_even_nums.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/num_even_nums.cpp b/num_even_nums.cpp
index 5d5c240..1513c72 100644
--- a/num_even_nums.cpp
+++ b/num_even_nums.cpp
@@ -16,7 +16,7 @@ public:
* it also returns n - 1. eg. log10(100) = 2
* use bitwise and to check if it's odd
*/
- ans += (int)log10(i) & 1;
+ ans += log10(i) & 1;
return ans;
}
};