Performance Review on LLM for solving leetcode problems
Authors:
- 20 December 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1050-1054
Abstract
This paper presents a comprehensive performance evaluation of Large Language Models (LLMs) in solving programming challenges from Leetcode, a widely used platform for algorithm practice and technical interviews. We began by crawling the Leetcode website to collect a diverse set of problems encompassing various difficulty levels and topics. Using this dataset, we generated solutions with multiple LLMs, including GPT-4 and GPT-3.5-turbo (ChatGPT-turbo). The generated solutions were systematically evaluated for correctness and efficiency. We employed the pass@k metric to assess the success rates within a given number of attempts and analyzed the runtime performance of the solutions. Our results highlight the strengths and limitations of current LLMs [1] in code generation and problem-solving tasks, providing insights into their potential applications and areas for improvement in automated programming assistance.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Deep Reinforcement Learning-based Obstacle Avoidance for Robot Movement in Warehouse Environments2024
- A Comparative Study of Machine Learning Approaches for Diabetes Risk Prediction: Insights from SHAP and Feature Importance2024
- Few-Shot Learning with Adaptive Weight Masking in Conditional GANs2024
- Graphical Structural Learning of rs-fMRI Data in Heavy Smokers2024
- A Performance Study of LLM-Generated Code on Leetcode2024
- Meta Learning Enabled Adversarial Defense2023
- Patch Elastic Deformation: An Effective Data Augmentation Method2022
- Dynamic Multi-label Learning with Multiple New Labels2019
- The FacT2019
- SingleCaffe: An Efficient Framework for Deep Learning on a Single NodeIEEE Access, 2018