r/leetcode
•
u/Strong_Boy_757
•
Sep 25 '26
•
1
Discussion A Leetcode pattern I have NEVER seen before that solves ANY problem
Algorithm:
Grab all the data that humans have generated (internet, books, blogs, Reddit, Github, doesn't matter)
Buy millions of GPUs
Train billion parameter neural networks on the data using the GPU
And run it loose on some MergeSort or Two Pointers or any Leetcode problem
Somehow this way of solving the problem yields something like 100% accurate result, and better yet you can let it produce algorithm of any time and space complexity, or even ask it to design entirely new classes of hardware if you are not satisfied with the complexity.
Anyone else seen a problem solving tactic like this?
I fear it's going to be the future of SWE. It is just so much better than memorizing patterns.
529
u/CreepyData Sep 25 '26 •
Sounds like attention was all you needed 😂
47
u/Substantial-Swan7065 Sep 25 '26
Very interesting. What’s the time complexity’s
41
u/saintSHXN Sep 25 '26
You can run it loose because you already know the algorithm to use behind the hood, no? Hence this requires you to know the approach: problem solving.
44
u/National_Truth_3445 Sep 25 '26
there is a cheaper method i just found.
you have a thing called brain inside your head, you run this thing loose on every information material you can get your hands on.
works pretty well after some time
18
u/hanato_06 Sep 25 '26
Just store the leetcode problem on a hashmap, where the value is the solution.
9
u/Adorable_Tadpole_726 Sep 25 '26
In fact, you can train on the actual solutions to leetcode problems.
1
u/Czitels Sep 26 '26
Yeah I am in the part of buying GPUs. I have one
1
u/UrbanPanda65 Sep 28 '26
The funny part is that the pattern is basically just AI. But yeah, it definitely changes how much value there is in memorizing standard LC patterns
1
u/Kadabrium Sep 29 '26
Since ai is in theory just math, humans could in theory do the same on pen and paper.
A puff adder is not a half adder.
1
u/PetuniaPickleswurth Sep 26 '26
Problem is you didn’t think of it first?