AlgoMaster Logo

Find All Numbers Disappeared in an Array

nums=[4, 3, 2, 7, 8, 2, 3, 1]
0 / 36
4327823101234567flip the sign at slot abs(v) - 1; positive slots are missing
algomaster.io
Step:Each value marks its home slot; slots left unmarked are the missing numbers