You are given an integer array bulbs representing a sequence of operations on light bulbs, where all light bulbs are initially turned off.
For each bulb identifier in bulbs, toggle its state: if the bulb is off, switch it on, and if it is on, switch it off.
Return an array containing the identifiers of all light bulbs that remain turned on at the end, sorted in ascending order.
Constraints:
bulbs.length
bulbs[i]
You are given an integer array bulbs representing a sequence of operations on light bulbs, where all light bulbs are initially turned off.
For each bulb identifier in bulbs, toggle its state: if the bulb is off, switch it on, and if it is on, switch it off.
Return an array containing the identifiers of all light bulbs that remain turned on at the end, sorted in ascending order.
Constraints:
bulbs.length
bulbs[i]