Category: c / c++
Let’s design a data stream that takes a bit either 1 or 0, and then returns true/false to indicate that the integer (constructed by the bits so far) is …
Given an integer n (in base 10) and a base k, return the sum of the digits of n after converting n from base 10 to base k. After …
As a user – I want to build a simple retry library, which retries on error and has a mechanism to do an exponential backoff. For example: var err …
e (Euler’s number) is a mathematical constant that is the value of when n is approaching infinity. Alternatively, it can be expressed as when t is approaching zero. It …
The following is a simple C++ source code that can be compiled into a command line program that can bomb your OS until the OS becomes unresponsive or crashes. …