Block or Report
Block or report di3
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned Loading
-
-
-
-
-
array.js
array.js 1export const shuffle = (array) => {
2for (let i = array.length - 1; i > 0; i--) {
3let rand = Math.floor(Math.random() * (i + 1));
4[array[i], array[rand]] = [array[rand], array[i]]
5}
-
binary.js
binary.js 1//Hamming weight
2export const getBitCount32 = (n) => {
3n = n - ((n >> 1) & 0x55555555);
4n = (n & 0x33333333) + ((n >> 2) & 0x33333333);
5return ((n + (n >> 4) & 0xF0F0F0F) * 0x1010101) >> 24;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.