1 | initial version |
Convert lists to tuples, like in this answer, and compare set(L_i) == set(L_j)
.
2 | No.2 Revision |
Convert You can compare sorted(L_i) == sorted(L_j)
to check if two lisrs are isomorphic.
Or, convert lists to tuples, like in this answer, and compare set(L_i) == set(L_j)
.