[Solution]217. Contains Duplicate
Problem
Problem_Link
Solutions (time, space)
O(n), O(n)
class Solution {
public boolean containsDuplicate(int[] nums) {
// Create a HashMap to store the elements of the array
HashMap<Integer, Integer> map = new HashMap<>();
...
eunhanlee.hashnode.dev1 min read