Back to course home
0% completed
Vote For New Content
Recursive approach
Rohit Nair
Jun 10, 2024
import math class Solution: def decimalToBinary(self, num): def _helper(n): if n == 0: return [] return _helper(n//2) + [str(n%2)] return "".join(_helper(num))
0
0
Comments
Comments
On this page