home/productivity/task-017-prompt

Task 017 Prompt

GPTClaudeDeepSeek··239 copies·updated 2026-07-14
task-017-prompt.prompt
Example 1:
Input: 'abc' → Output: 'cba'
Example 2:
Input: 'race' → Output: 'ecar'
Example 3:
Input: '' → Output: ''
Now write a function reverse_string(s) that returns a new string with the characters of s in reverse order.

when to use it

Community prompt sourced from the open-source GitHub repo KCyrusNF/Prompting-Strategies-CodeGen-Study (MIT). A "Task 017 Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

KCyrusNF/Prompting-Strategies-CodeGen-Study · MIT