Class Solution

  • All Implemented Interfaces:

    
    public final class Solution
    
                        

    504 - Base 7\.

    Easy

    Given an integer num, return a string of its base 7 representation.

    Example 1:

    Input: num = 100

    Output: "202"

    Example 2:

    Input: num = -7

    Output: "-10"

    Constraints:

    • <code>-10<sup>7</sup><= num <= 10<sup>7</sup></code>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Solution()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String convertToBase7(Integer num)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait