add algorithm that calculates next power of two

This commit is contained in:
Indre Maksimovaite
2021-10-11 20:13:36 +03:00
parent 5f601fac8d
commit 372348f64c
4 changed files with 36 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import {IsPowerOfTwo} from '../IsPowerOfTwo'
import { IsPowerOfTwo } from '../IsPowerOfTwo'
test('Check if 0 is a power of 2 or not:', () => {
const res = IsPowerOfTwo(0)