X Tutup
Skip to content

Commit e5b5cf6

Browse files
authored
Realized BigInt support is unnecessary
The algorithm would be exactly the same, so there's no added educational value
1 parent b7743e1 commit e5b5cf6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Maths/PerfectCube.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*
55
* Infinity is an undefined cube, so return false for any sign.
66
* This uses `round` instead of `floor` or `trunc`, to guard against rounding errors.
7-
* currently, the function doesn't support `BigInt`s
87
*/
98

109
const perfectCube = (num) => Number.isFinite(num) && Math.round(Math.cbrt(num)) ** 3 === num

0 commit comments

Comments
 (0)
X Tutup