Data Structures and Algorithm in JavaScript
-
Updated
Feb 28, 2024 - JavaScript
Data Structures and Algorithm in JavaScript
Mathematical investigation on circular sets and powers of two
smallestPowerOfTwo(), takes in an array and should return an array with the power of two which is greater than the value of each number element in the array provided as argument. For example, [5, 3, 9, 30] should return [ 8, 4, 16, 32 ].
Add a description, image, and links to the power-of-two topic page so that developers can more easily learn about it.
To associate your repository with the power-of-two topic, visit your repo's landing page and select "manage topics."