All Questions
2 questions
4votes
2answers
378views
Find out whether number is of Power of Two
The task is taken from leetcode Given an integer, write a function to determine if it is a power of two. Example 1: Input: 1 Output: true Explanation: 20 = 1 Example 2: ...
3votes
1answer
439views
Division without using division, multiplication, or modulus operators
The task Implement division of two positive integers without using the division, multiplication, or modulus operators. Return the quotient as an integer, ignoring the remainder. My solution <...