LeetCode 코딩 문제들에 대해, LLM의 코드 생성 능력 검증을 위한 소스코드 저장소입니다.
-
LeetCode 사이트: https://leetcode.com/
-
Environment
- 한글 주석 인코딩
- python 3.X 버전 사용
- 2.X버전은 # -- coding: utf-8 -- 구문 추가해야 함
- pandas 설치
- openai 설치
- 한글 주석 인코딩
-
LeetCode CLi
- 참고: https://github.com/skygragon/leetcode-cli
- node.js 설치 필요
- cmd에서 leetcode user -c 명령어로 로그인후 사용
-leetcode cli 사용
-leetcode_dataset.csv에 python template과 c template 추가
-chat GPT에게 leetcode 문제를 3가지 방법으로 질문
- first result: code template + description
- second result: code template + description + constraints
- third result: code template + description + constraints + example
-leetcode cli 사용
-LLM이 생성한 코드를 파일로 저장 후 leetcode에 submit
-leetcode 문제가 등록된 날짜 확인
-leetcode가 LLM 학습에 활용되었을 가능성 확인