Skip to content

OpenRL-Lab/letcode.ai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tim's experiments to ask AI to help coding.

Experiment 1: Auto solve leetcode problems and submit

Blogs: EN / 中文

letcode3.mov

Install

cd agent
npm install

How to play with the script

  1. Open Chrome in remote debug mode:
    # on macOS
    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  2. Make sure you have logged in to leetcode.com.
  3. Run the script.
    # set env variable
    export OPENAI_API_KEY="your API key"
    # run the script
    node agent/leecode.mjs

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.4%
  • TypeScript 12.3%
  • CSS 2.0%
  • Shell 0.3%