AWS Builder Center

I Compared My Coding Skills to ChatGPT's. The Result Was Uncomfortable.

I gave myself and ChatGPT the same four coding problems. The scores weren't what hurt. What hurt was realizing I'd confused reading solutions with being able to write them.

AI/ML Student | Python & AI Enthusiast
I'm a student developer learning Python and data structures.
Like many students today, I have ChatGPT available whenever I get stuck on a coding problem.
It explains algorithms, suggests approaches, fixes errors, and generates working code in seconds.
But recently, I started asking myself an uncomfortable question:
Am I actually learning to solve problems, or am I just getting better at understanding solutions generated by AI?
So I decided to compare the two.

The Experiment

I selected four problems that represent different aspects of basic programming and problem-solving:
  • Check whether a number is prime.
  • Find the second-largest distinct element in an array.
  • Solve Two Sum.
  • Determine the time complexity of each solution.
For my attempt, I would work independently without AI, search engines, or hints.
For ChatGPT, I would provide the same problem statements and ask for Python solutions with explanations.
The comparison would focus on correctness, approach, efficiency, and how easily I could understand and reproduce the solutions.

The Results

Here's what a comparison of these problems reveals:
Problem
What I Need to Do
What ChatGPT Can Do
Prime check
Translate conditions into a working loop
Generate a correct implementation quickly
Second-largest
Handle duplicates and edge cases
Suggest approaches and implementations
Two Sum
Identify the appropriate data structure
Produce a dictionary-based solution
Time complexity
Analyze operations independently
Explain complexity with examples
The interesting part isn't that AI can solve these problems.
It's what happens when I have to solve them without assistance.

The Uncomfortable Difference

Take Two Sum.
The problem sounds straightforward: find two numbers whose sum equals a target.
I might understand that a dictionary can make the solution efficient.
But understanding the idea doesn't automatically mean I can implement it correctly.
I still need to decide what to store, what to search for, when to return the answer, and how to handle the problem's constraints.
ChatGPT can generate the implementation almost immediately.
I have to develop the reasoning that makes the implementation possible.
And that difference matters.
Reading a solution creates familiarity. Solving a problem independently requires recall, reasoning, and implementation.
They are not interchangeable.

Where ChatGPT Has the Advantage

AI is exceptionally useful when it comes to generating implementations, suggesting alternative approaches, and identifying potential edge cases.
For example, in the second-largest element problem, duplicates can completely change the answer.
An array such as:
 [10, 10, 8, 5] 
has a second-largest distinct element of  8 , not  10 .
A solution that ignores this requirement may appear correct while failing the actual problem.
AI can quickly suggest implementations that account for such conditions.
But generating a correct solution and understanding why it is correct are still separate tasks.

Where the Human Learning Process Matters

When I solve a problem independently, every mistake becomes information.
A failed implementation forces me to examine my assumptions.
A missed edge case teaches me to think beyond the sample input.
A wrong complexity analysis forces me to understand what the code actually does.
These experiences are difficult to replace with simply reading a finished answer.
The value isn't in struggling unnecessarily.
It's in developing the ability to reason through unfamiliar problems without depending on someone else's solution.

What I Changed About Using AI

I don't think avoiding AI completely is the answer.
Instead, I want to use it in a way that strengthens my problem-solving ability.
My approach:
  • Attempt the problem independently before requesting help.
  • Set a reasonable time limit.
  • Ask AI for hints before asking for complete solutions.
  • Use AI to identify edge cases and review my implementation.
  • Reattempt the problem without looking at the original answer.
That final step is especially important.
If I cannot reproduce the solution independently, I probably haven't understood it deeply enough.

The Real Takeaway

ChatGPT can generate code faster than I can.
But speed alone doesn't determine whether I'm becoming a better developer.
The ability to understand a problem, choose an approach, implement it, debug it, and explain why it works is still something I need to develop myself.
AI makes solutions more accessible than ever.
That also makes independent thinking more valuable than ever.
The real competition isn't between me and ChatGPT. It's between the developer I am today and the one I could become if I stopped outsourcing the thinking.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article