docs: add populate-notes.mjs to leetcode/AGENTS.md

This commit is contained in:
2026-06-01 17:23:01 +08:00
parent cf158eafdf
commit 7659303fb0
2 changed files with 15 additions and 2 deletions
@@ -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++