GoLang Solution For LeetCode Problem: Convert a Number to Hexadecimal
Solving Convert a Number to Hexadecimal in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.
- All letters in hexadecimal (
a-f) must be in lowercase.
- The given number is guaranteed to fit within the range of a 32-bit signed integer.
Input: 26 Output: "1a"
Input: -1 Output: "ffffffff"
See the full details of the problem Convert a Number to Hexadecimal at LeetCode
Originally posted at: @github.com/halfrost/LeetCode-Go