You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a coding expert, I require your aid with a specific LeetCode problem
138
-
called ${problemTitle}. Generate the best possible, optimized solution
139
-
for this problem. Only the function definition and code should be returned
140
-
in plain text format with no usage of code blocks. Code comments are optional.
141
-
Anything other than the code text is not permitted. I should be able to copy
142
-
and paste the code into the LeetCode editor and run it successfully.`;
138
+
As a coding professional, I need your expertise with a specific LeetCode problem named ${problemTitle}.
139
+
Please follow the instructions:
140
+
1. If no code is provided: Generate an efficient and accurate solution for the problem.
141
+
2. If code is provided and contains errors: Identify the issues, correct them, and optimize the code if possible.
142
+
3. If the provided code is already correct and optimized: Simply return it as-is.
143
+
IMPORTANT: Your response should only include the function definition and code solution in plain text format (no backticks, code blocks, or additional formatting).
0 commit comments