Code task with strict constraints
Language: [e.g. TypeScript / Python 3.12] Task: [what to implement or fix] Constraints: - Do not use external libraries unless listed here: [list or 'none']. - Keep the solution under [N] lines. - Maintain the existing public API — only change internals. - Handle edge cases: [list, e.g. empty input, null, out-of-range]. Return: 1. The implementation (code only, no markdown fences unless asked). 2. A brief list of edge cases covered. 3. Any assumption you made that could affect the output.
Opens on home with the prompt prefilled.
Open in Promptea