Smallest Number Formed from All Odd Digits
Problem
Implement smallest_odd_number(n).
Given an integer n or None, extract every odd digit from the decimal representation of abs(n). Rearrange these digits to form the smallest possibl...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
