The code lock for my garage has 5 buttons, labeled "1 2", "3 4", "5 6", "7 8", and "9 0". To open the garage door, you have to enter the correct 4-digit PIN.
As you can see, every button represents two numbers. Thus some PINs, like "1357" and "2367", are essentially identical because they require the same sequence of button presses.
Further, there is no "open" button so the lock always just takes the last 5 digits that were entered. For example, pressing "135791" would open the door for the PINs "1357", "3579", and "5791" (as well as all their equivalents).
Your task is to write a piece of code that outputs or returns a string of digits or list of numbers that, if entered, is guaranteed to open my garage door. Remember: when your result includes "1458", you don't need to output "2367" anymore. You can use all 10 digits, but using only odd or even digits is sufficient.
The shortest result sequence wins (measured in digits, 629 (4+5^4
) is the theoretical minimum). If equal, the shortest code in bytes wins.