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:
0 <= num <= 10^9Solutions for this problem are being prepared.
Try solving it yourselfEncode and Decode Strings - Leetcode 271 - Python • NeetCode • 333,550 views views
Watch 9 more video solutions →Practice Encode Number with our built-in code editor and test cases.
Practice on FleetCode