Tag: C++ coding exercise
If we want to compute , and if the y is integer, we can easily do this using a straigtforward loop O(n), or a O(logn) approach. However, if the …
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 …
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 …