Problem 3217 · Medium
Put the forbidden values in a set, then keep only the list nodes whose values are not in it.
Open the interactive visualisation