Documentation

How to use LeetWrite

A comprehensive guide to transforming your raw code into professional, highly-readable LeetCode discussions. Follow these steps to maximize the quality of your output.

01

PROVIDE YOUR CODE

Start by pasting your successfully accepted LeetCode solution into the input editor. LeetWrite AI automatically detects the programming language, but you can explicitly set it using the dropdown if needed. It's recommended to include any helper functions your code relies on.

02

CONFIGURE GENERATION

Select your desired explanation complexity. 'Detailed' is perfect for beginners and includes step-by-step walkthroughs, while 'Concise' is better for competitive programmers who just want the high-level intuition and complexity bounds. No complex prompting is required—our system handles the heavy lifting.

03

REVIEW & REFINE

Click Generate. In seconds, LeetWrite AI produces a LeetCode-native Markdown document. The output is structured into standard sections: Intuition, Approach, Complexity (Time & Space), and the formatted Code block. You can manually edit the markdown in the preview panel to add your own personal flair.

04

PUBLISH

Once you're satisfied with the write-up, click 'Copy Markdown'. Navigate to the LeetCode discussion tab for the problem, click 'New Post', and paste your clipboard. The formatting is strictly tested to render perfectly in LeetCode's Markdown engine.

READY TO START WRITING?

Launch Generator