Category: c / c++
You are given a 2D integer array logs where each logs = indicates the birth and death years of the ith person. The population of some year x is …
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 …