• Home
  • Search
  • Utilizing Chain of Thought to Generate Code from Challenging Programming Requirements
  • https://doi.org/10.1109/icce67443.2026.11449835Copy DOI Icon

Utilizing Chain of Thought to Generate Code from Challenging Programming Requirements

  • Feb 3, 2026
  • Emanalofi +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Similar Papers
Abstract

With the rise in using Large Language Models (LLMs), research proved the feasibility of using LLMs in various software engineering tasks including code generation. However, it remains a major challenge to ensure the correctness and the efficiency of the LLM-generated code. This paper applies the "Chain-of-thought" prompting approach to improve GPT performance in code generation and its ability to convert coding requirements from HackerRank and LeetCode online coding platforms into correct Python, C++, and JavaScript code. We evaluated the performance of GPT-3.5 and GPT-4 across 558 programming challenges on HackerRank and LeetCode platforms. Our evaluation framework employed a comprehensive test case validation system, where each generated solution was tested against predefined input-output pairs, with success determined by exact matches between expected and actual outputs. The evaluation revealed significant variations in success rates across platforms (HackerRank: 46.83% vs. LeetCode: 7.35%) and programming languages (Python leading with 28.6% overall success rate). These results demonstrate that while the chain of thought approach enhances code generation accuracy, particularly for structured programming tasks, significant challenges remain in handling complex algorithmic problems.

Similar Papers
  • Research Article
  • Citations2

Towards Secure Code Generation With LLMs: A Study on Common Weakness Enumeration

  • Dec 01, 2025
  • IEEE Transactions on Software Engineering
  • Jianguo Zhao +6
  • Research Article

A Large-Scale Empirical Evaluation of LLMs for Automated Self-Admitted Technical Debt Repayment

  • Feb 10, 2026
  • ACM Transactions on Software Engineering and Methodology
  • Mohammad Sadegh Sheikhaei +3
  • Research Article

ICAM-Trans: Implicit-Context-Aware Multi-Agent Framework for Function-Level Code Translation

  • Apr 21, 2026
  • ACM Transactions on Software Engineering and Methodology
  • Ruolin Chen +4
  • Research Article
  • Citations1

AI-Powered Code Generation Evaluating the Effectiveness of Large Language Models (LLMs) in Automated Software Development

  • Mar 31, 2023
  • Journal of Artificial Intelligence & Cloud Computing
  • Ravikanth Konda
  • Research Article
  • Citations7

COFFE: A Code Efficiency Benchmark for Code Generation

  • Jun 19, 2025
  • Proceedings of the ACM on Software Engineering
  • Yun Peng +3
  • Research Article

TaskEval: Assessing Difficulty of Code Generation Tasks for Large Language Models

  • Oct 28, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Florian Tambon +4
  • Research Article
  • Citations1

Evaluating the Test Adequacy of Benchmarks for LLMs on Code Generation

  • Jun 25, 2025
  • Journal of Software: Evolution and Process
  • Xiangyue Liu +5
  • Research Article

Security and Quality in LLM-Generated Code: a Multi-Language, Multi-Model Analysis

  • Jan 01, 2026
  • IEEE Transactions on Dependable and Secure Computing
  • Mohammed Kharma +3
  • Research Article

Analyzing LLM-generated code according to four ISO/IEC 5055:2021 categories

  • Jan 01, 2025
  • IEEE Access
  • Rasmus Krebs +1
  • Research Article

Research and selection of Large Learning Models for automation of ABAP-code migration

  • Sep 24, 2025
  • Management of Development of Complex Systems
  • Oleg Pozdnyakov +1
  • Research Article
  • Citations37

On the Effectiveness of Large Language Models in Domain-Specific Code Generation

  • Feb 23, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Xiaodong Gu +8
  • Conference Article
  • Citations1

LLASP: Fine-tuning Large Language Models for Answer Set Programming

  • Nov 01, 2024
  • Erica Coppolillo +4
  • Conference Article
  • Citations28

MapCoder: Multi-Agent Code Generation for Competitive Problem Solving

  • Jan 01, 2024
  • Md Ashraful Islam +2
  • PDF
  • Research Article
  • Citations7

Unit Test Generation Using Large Language Models: A Systematic Literature Review

  • May 13, 2024
  • Vilnius University Open Series
  • Dovydas Marius Zapkus +1
  • Conference Article
  • Citations129

Benchmarking Large Language Models for Automated Verilog RTL Code Generation

  • Apr 01, 2023
  • Shailja Thakur +7
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.