MCPcopy Index your code
hub / github.com/neetcode-gh/leetcode / add

Method add

javascript/0705-design-hashset.js:12–14  ·  view source on GitHub ↗

* Time O(1) | Space O(1) * @param {number} key * @return {void}

(key)

Source from the content-addressed store, hash-verified

10 * @return {void}
11 */
12 add(key) {
13 this.set[key] = key;
14 }
15
16 /**
17 * Time O(1) | Space O(1)

Callers 15

backTrackFunction · 0.45
backtrackFunction · 0.45
hasAllCodesFunction · 0.45
findDisappearedNumbersFunction · 0.45
hasRedundantConnectionFunction · 0.45
lengthOfLongestSubstringFunction · 0.45
transformFunction · 0.45
followMethod · 0.45
addNumMethod · 0.45
getTimeFunction · 0.45
distinctNamesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected