Day 24 of LeetCode Challenge
Problem 1: Contains Duplicate
Link to the problem: https://leetcode.com/problems/contains-duplicate/
class Solution {
public boolean containsDuplicate(int[] nums) {
Map<Integer, Integer> map = new HashMap<>();
for(int i:nums){
...
tusharpant.hashnode.dev2 min read