submit_solution
Submit a LeetCode solution to get acceptance status, runtime/memory stats, or failed test case details.
Instructions
Submit a solution to a LeetCode problem and get results. Returns acceptance status, runtime/memory stats, or failed test case details. When LEETCODE_MCP_STRICT_MODE=1 is set, requires run_local_tests to have last passed for the problem first — saves real LeetCode submissions for solutions that pass examples locally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The solution code to submit | |
| language | Yes | Programming language for the solution | |
| problemSlug | Yes | The problem slug (e.g., "two-sum") |