shit-like-code in leetcode with random list