GoLang Solution For LeetCode Problem: Divide Two Integers
Solving Divide Two Integers in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.
The integer division should truncate toward zero.
Input: dividend = 10, divisor = 3 Output: 3
Input: dividend = 7, divisor = -3 Output: -2
- The divisor will never be 0.
See the full details of the problem Divide Two Integers at LeetCode
Originally posted at: @github.com/halfrost/LeetCode-Go