In ‘Contains duplicate II’ example, the text above the first hash map says “Count and store the frequency of elements using hash map” which I believe is incorrect. The existing text below the hash map should be the correct description: “Keys represent the indexes of the input array and values represent the elements of array.”
Course: Grokking Coding Interview Patterns in Java - AI-Powered Learning for Developers
Lesson: Introduction to the Knowing What to Track pattern - Grokking Coding Interview Patterns in Java