← 返回 stripe 的题目列表Prompt-based AI Coding in HackerRank
类型:online_judge
Prompt-based AI Coding in HackerRank
In HackerRank, there is an AI chat box. The interviewer provides a programming task, but you are expected to solve it primarily by writing prompts that instruct the AI to generate working code, then you may patch the code to pass all tests.
Requirements:
Provide the prompt(s) you would use to drive the AI to produce the solution (multi-turn is allowed).
After the AI generates code, make necessary edits so it matches the required I/O format and passes the tests.
Note: This is a meta interview-format question. The concrete programming task is given during the interview. You should demonstrate how your prompts constrain algorithm, complexity, edge cases, I/O, and require the AI to output runnable Java code (or the specified language).