Data Structures
2 JavaScript data structures challenges, each with test cases you can run in the browser.
- hasDuplicate — Easy. Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice
- twoSum — Medium. Given an array of integers `nums` and an integer `target`, return indices of the two numbers such that they add up to `target`. You may assu