Question d’entretien chez ByteDance

1. Why hashmap can perform O(1)? 2. Two leetcode medium problems.