← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Write a function to check if two nested sets are equal. Sets can be nested to unlimited depth. Order doesn't matter within a set, but structure must match.
Key Insight: Convert nested structures to a canonical form for comparison. Use sorting or hashing to handle order-independence.