Category: c / c++
Given a sorted arrays with integers and a target to locate, find the first and last position of the element in the sorted array. Example: Input: nums = , …
Given an integer N, find out the number of method to sum up to N by integers given the following requirements: Natural Numbers (Postive Integers) need to be strictly …
Given an integer, check if its binary representation are containing the alternating bits. For example, 101, 10101, 1010 are binary numbers with alternative bits. But 1011, 1110 are not. …
Given a API guess(int num) which will return three possible results (0 – you guess right, -1 my answer lower, and 1 my answer higher), your task is to …
Same Email addresses can have different forms for example, in the format of “username@domain” – the username part can have the optional dots to separate. The following email addresses …