Smallest number constructed by odd digits
Asked at Meta · Coding Questions · Difficulty: Easy
Given a positive integer, construct the smallest number using only the odd digits from it, and return that number. The input is guaranteed to have at least one odd digit.
Loading the problem…
More Meta interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Dot Product with Run-Length Encoded Vectors
- Count Lakes Wrapped by a Given Island
- Minimum Remove to Make Valid Parentheses
- LLM with Beam Search and Nucleus Sampling (Meta MSL)