Understand LeetCode evaluation limitations
mainWhen using the code optimization evaluation suite, be aware of the following constraints:
- Result Instability: Minor changes in code snippets can lead to varying results. It is recommended to run optimizations multiple times with different seeds and report averages.
- Platform Issues: Interfacing with the LeetCode platform via
python-leetcodemay result in timeouts, network issues, or rate limiting. - Character Constraints: The LeetCode API may reject programs containing certain characters (like parentheses or brackets wrapping Python statements). The evaluation pipeline attempts to mitigate this by using GPT-4 to clean the code.
- Data Source: The evaluation uses data from
LeetCodeHardGym. The dataset used isleetcode_with_tests.jsonl.