docs: add populate-notes.mjs to leetcode/AGENTS.md
This commit is contained in:
@@ -45,6 +45,12 @@ Write your approach here.
|
||||
#+begin_src python
|
||||
class Solution:
|
||||
def containsDuplicate(self, nums: List[int]) -> bool:
|
||||
s = set()
|
||||
for x in nums:
|
||||
if x in s:
|
||||
return True
|
||||
s.add(x)
|
||||
return False
|
||||
#+end_src
|
||||
|
||||
** TODO C++
|
||||
|
||||
@@ -21,8 +21,15 @@ Source: [[https://neetcode.io/roadmap][neetcode.io/roadmap]]
|
||||
Notes: [[file:dsa/arrays-hashing/0217-contains-duplicate.org]]
|
||||
** TODO 0242. Valid Anagram :easy:
|
||||
:PROPERTIES:
|
||||
:LEETCODE: [[https://leetcode.com/problems/valid-anagram/][Problem]]
|
||||
:CPP: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0242-valid-anagram.cpp][Solution]]
|
||||
:LEETCODE: [[https://lclass Solution:
|
||||
def containsDuplicate(self, nums: List[int]) -> bool:
|
||||
s = set()
|
||||
for x in nums:
|
||||
if x in s:
|
||||
return True
|
||||
s.add(x)
|
||||
return False
|
||||
.com/neetcode-gh/leetcode/blob/main/cpp/0242-valid-anagram.cpp][Solution]]
|
||||
:PYTHON: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0242-valid-anagram.py][Solution]]
|
||||
:VIDEO: [[https://youtube.com/watch?v=9UtInBqnCgA][Watch]]
|
||||
:END:
|
||||
|
||||
Reference in New Issue
Block a user