Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhang, Jialu, Gu, Jialiang, Zhang, Wangmeiyu, Cambronero, José Pablo, Kolesar, John, Piskac, Ruzica, Li, Daming, Shi, Hanyuan
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2510.14339
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915557506285568
author Zhang, Jialu
Gu, Jialiang
Zhang, Wangmeiyu
Cambronero, José Pablo
Kolesar, John
Piskac, Ruzica
Li, Daming
Shi, Hanyuan
author_facet Zhang, Jialu
Gu, Jialiang
Zhang, Wangmeiyu
Cambronero, José Pablo
Kolesar, John
Piskac, Ruzica
Li, Daming
Shi, Hanyuan
contents Online programming platforms such as Codeforces and LeetCode attract millions of users seeking to learn to program or refine their skills for industry interviews. A major challenge for these users is the Time Limit Exceeded (TLE) error, triggered when a program exceeds the execution time bound. Although designed as a performance safeguard, TLE errors are difficult to resolve: error messages provide no diagnostic insight, platform support is minimal, and existing debugging tools offer little help. As a result, many users abandon their submissions after repeated TLE failures. This paper presents the first large-scale empirical study of TLE errors in online programming. We manually analyzed 1000 Codeforces submissions with TLE errors, classified their root causes, and traced how users attempted to fix them. Our analysis shows that TLE errors often arise not only from inefficient algorithms but also from infinite loops, improper data structure use, and inefficient I/O, challenging the conventional view that TLEs are purely performance issues. Guided by these findings, we introduce Nettle, the first automated repair tool specifically designed for TLE errors, and Nettle-Eval, the first framework for evaluating TLE repairs. Integrating LLMs with targeted automated feedback generated by the compiler and test cases, Nettle produces small, correct code edits that eliminate TLEs while preserving functionality. Evaluated on the same 1000 real-world cases, Nettle achieves a 98.5% fix rate, far exceeding the strongest LLM baseline, and all of its repairs pass both Nettle-Eval and the platform's official checker, confirming the reliability of our framework.
format Preprint
id arxiv_https___arxiv_org_abs_2510_14339
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Systematic Study of Time Limit Exceeded Errors in Online Programming Assignments
Zhang, Jialu
Gu, Jialiang
Zhang, Wangmeiyu
Cambronero, José Pablo
Kolesar, John
Piskac, Ruzica
Li, Daming
Shi, Hanyuan
Software Engineering
Online programming platforms such as Codeforces and LeetCode attract millions of users seeking to learn to program or refine their skills for industry interviews. A major challenge for these users is the Time Limit Exceeded (TLE) error, triggered when a program exceeds the execution time bound. Although designed as a performance safeguard, TLE errors are difficult to resolve: error messages provide no diagnostic insight, platform support is minimal, and existing debugging tools offer little help. As a result, many users abandon their submissions after repeated TLE failures. This paper presents the first large-scale empirical study of TLE errors in online programming. We manually analyzed 1000 Codeforces submissions with TLE errors, classified their root causes, and traced how users attempted to fix them. Our analysis shows that TLE errors often arise not only from inefficient algorithms but also from infinite loops, improper data structure use, and inefficient I/O, challenging the conventional view that TLEs are purely performance issues. Guided by these findings, we introduce Nettle, the first automated repair tool specifically designed for TLE errors, and Nettle-Eval, the first framework for evaluating TLE repairs. Integrating LLMs with targeted automated feedback generated by the compiler and test cases, Nettle produces small, correct code edits that eliminate TLEs while preserving functionality. Evaluated on the same 1000 real-world cases, Nettle achieves a 98.5% fix rate, far exceeding the strongest LLM baseline, and all of its repairs pass both Nettle-Eval and the platform's official checker, confirming the reliability of our framework.
title A Systematic Study of Time Limit Exceeded Errors in Online Programming Assignments
topic Software Engineering
url https://arxiv.org/abs/2510.14339