kamyu104/LeetCode-Solutions

index array might be not in ascending order

AndrewLisuxin opened this issue · 1 comments

used_[list_.back()].back() = used_[val].back();

seems you think the tail element in the storage is corresponding to the tail element in the index array, which
might be wrong after you do some swap

I fixed it. Thank you very much!