Skip to content

Commit 9283b78

Browse files
Clarify approach in ContainsDuplicateII class
Added a comment to clarify the approach used in the ContainsDuplicateII class.
1 parent 6d65a91 commit 9283b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HashMap/Sliding Window/ContainsDuplicateII.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class ContainsDuplicateII {
1+
class ContainsDuplicateII { // Hash Map approach
22
public boolean containsNearbyDuplicate(int[] nums, int k) {
33

44
Map<Integer, Integer> map = new TreeMap<>();

0 commit comments

Comments
 (0)