Skip to content

timqian/letcode.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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

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