Skip to content

Files

Latest commit

44dc9b6 · Apr 21, 2021

History

History
83 lines (34 loc) · 1.09 KB

File metadata and controls

83 lines (34 loc) · 1.09 KB

中文文档

Description

Given a non-negative integer num, Return its encoding string.

The encoding is done by converting the integer to a string using a secret function that you should deduce from the following table:

 

Example 1:

Input: num = 23

Output: "1000"

Example 2:

Input: num = 107

Output: "101100"

 

Constraints:

    <li><code>0 &lt;= num &lt;= 10^9</code></li>
    

Solutions

Python3

Java

...