GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — TypeScript-algorithm/maths/perfect_cube.ts at master · sysDesigner0430/TypeScript-algorithm Expand file tree/ Copy pathperfect_cube.tsMore file actions 9 lines (8 loc) · 208 Bytes / Copy pathperfect_cube.tsFile metadata and controls9 lines (8 loc) · 208 Bytes 1 2 3 4 5 6 7 8 9 /** * A number is a perfect cube, if the cube root is an integer. * * @param n The number to check. */ export const perfectCube = (n: number): boolean => { return Math.round(n ** (1 / 3)) ** 3 === n } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |