LeetCode 504: Base 7
Problem Restatement We are given an integer num . We need to return its representation in base 7 as a string. The official problem asks us to convert an integer from base 10 into base 7. Negative numbers should keep the negative sign. Input and Output Item Meaning Input An integer num Output A string Goal Return the base 7 representation of num Function shape: class Solution: def convertToBase7(self, num:...