Category: c / c++
Your task is to Calculate the sum of two integers a and b without using the operator + and -. Bit Manipulation Integers represent in binary consists of bits …
We all know that the 32-bit signed/unsigned integer takes 4 byte while 64-bit signed/unsigned integer takes 8 bytes to store. If there is a very big integer which is …
On Windows, can a process kill itself? Let’s verify this by writing a small piece of C++ code, compiled by GNU C++ compiler 4.6, Windows 32-bit. First, we would …
Given a non-negative integer n, please find out the number of integers that have the unique digits between [0, 10^n). For example, if n = 2, there are 91 …
Today, I need to measure two command line utilties so I need a ‘timeit’ utility on Windows. You could record the time before and after the command runs and …