Implement Rand10() Using Rand7() Leetcode Solution
Problem Statement: Implement Rand10() Using Rand7() Leetcode Solution – Given the API rand7() that generates a uniform random integer in the range [1, 7], write a function rand10() that produces a uniform random integer in the range [1, 10]. You can only call the API rand7(), and you shouldn’t call any other …