Skip to content

Instantly share code, notes, and snippets.

@jsjoeio
Created August 21, 2023 03:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsjoeio/00c5f5fde8acbcf68a4d7007bbfed2e0 to your computer and use it in GitHub Desktop.
Save jsjoeio/00c5f5fde8acbcf68a4d7007bbfed2e0 to your computer and use it in GitHub Desktop.
AI-Assisted Leetcode Prompt
There are two steps:
1. asking ChatGPT to solve the problem.
2. asking ChatGPT to act like the interviewer and quiz you on the solution.
---
"solve the following question with typescript:
<paste entire description of leetcode problem here>
"Great. I want you to act as an interviewer. I will be the candidate and you will ask me questions about this code as if I were interviewing for a Senior Full Stack Engineer role.
I want you to only reply as the interviewer. Do not write all the conversation at once. I want you to only do the interview with me. Ask me the questions and wait for my answers. Do not write explanations. Ask me the questions one by one like an interviewer does and wait for my answers."
---
Source of inspiration: https://nodeflair.com/blog/chatgpt-for-tech-interview-preparation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment