I have a lists as list<list<list>>
lists where I want to remove duplicate list.
list_1 = [
[
[1,2],[2,3]
],
[
[3,4],[5,6]
],
[
[3,4], [5,6]
]
]
So expected output should be
output = [
[
[1,2],[2,3]
],
[
[3,4],[5,6]
]
]
Is there are shortcut to do that instead of comparing each list with each other. We cannot do set(list_1), then what is the easiest to remove duplicates?
P.S: It's a 3 level nesting so the answer marked for duplicate question doesn't work.