Given a 7-segment display with some segments switched on and some off, find a sequence of digits (0-9), such that after toggling the corresponding segments for each digit, all segments are switched off.
_ _  => |  => [OFF] _ |
Numbers and their corresponding segments:
_ _ _ _ _ _ _ _ | | | _| _| |_| |_ |_ | |_| |_| |_| | |_ _| | _| |_| | |_| _|
Codegolf ⊨ shortest entry wins.
A non-empty list of segments which are switched on, given as
A sequence of numbers. Segments are numbered from top to bottom, left to right; starting from 0 or 1. Numbers need not be in order.
A single 7-bit digit. MSB/LSB not specified (thus you can choose).
Non-numeric characters between numbers are allowed (but not required to be supported).
Eg. for number
A sequence of numbers to be "applied" to the display. Not restricted in any way, such as order of the digits. Eg. for initial state corresponding to number
1, valid outputs would be
An alternative output is a 10-bit digit (again, MSB/LSB is your choice). Eg. for
1 as input, the output would be
Some combinations have several non-repetitive solutions, eg. segments corresponding to the uppercase letter
H can be switched off by
013, but also
If no solution exists (which I believe is not possible), the output is empty.