Category: implementation
I recently purchased a $5 VPS from Vultr and what I get is 1 core (2.4GHz), 740MB RAM and 15GB SSD. It is the basic (minimal) specs and nothing …
On WSH (Windows Scripting Host) environment, you can use VBScript or JScript (Microsoft’s implementation of Javascript). Both languages are supported and shipped on every Windows versions since Windows 98. …
There is a popular IQ question, e.g. according to the first few number patterns, find the answer to the input: 1234 = 0 4567 = 1 2345 = 0 …
Hashing is an important technique in Computer Science. There are many cases that you can use Hash to speed up your algorithms (e.g. by reducing from O(n^2) to O(n) …
Question: Given a positive integer (nature number) N, count the number of ‘1’s between number 1 to N inclusive. For example, when N = 2, the answer is 1, …