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++
|
||||
|
||||
Reference in New Issue
Block a user