Author: ACMer
Given an integer N, find out the number of method to sum up to N by integers given the following requirements: Natural Numbers (Postive Integers) need to be strictly …
Given an integer, check if its binary representation are containing the alternating bits. For example, 101, 10101, 1010 are binary numbers with alternative bits. But 1011, 1110 are not. …
You could host your own website from your own Windows computer without much effort and yet get a great amount of output. This is made possible through the use …
Given a Relational Table stroing the nodes in a tree-like data structure, like this: +----+------+ | id | p_id | +----+------+ | 1 | null | | 2 | …
Suppose we have an array and we want to remove the duplicates and return a new array, here is the function: Array.prototype.uniq = function () { let data = …