Facebook | Phone | Product of Array Except Self & Divide Integers
Anonymous User
2784
Apr 02, 2020
Apr 12, 2020
Question 1:
https://leetcode.com/problems/product-of-array-except-self/, but with no restriction on use of division.
Question 2:
Given dividend and divisor, return quotient and remainder. Using division or mod operator is not allowed. Do it in better than linear time.
Example:
Input: dividend = 13, divisor = 4
Output: 3, 1Follow up questions: recursive vs iterative solutions.
(I couldn't find the same problem on LC. The closest one is: https://leetcode.com/problems/divide-two-integers/. But, since multiplication is allowed - the solution is different).
Comments (9)


