AI Chats Unable to Solve Easy Coding Problem
AI Chats Unable to Solve Easy Coding Problem
I needed a bash script that, given a path, would detect empty directories. More specifically, I wanted the script to only list the highest parent directory (in other words, if there were no files anywhere beneath parent and within parent's subdirs, then just output the parent). I figured this would be quite simple, but since I was already working with a AI chat, I gave it a prompt with the rules and objective. After 30 mins of so, I switched to DeepSeek, thinking it would output a solution on the first try. Nope. Not even after more than 90 minutes of back and forth with debugging. I was very surprised. As an aside, I solved it on my own in a simple two step process: Step 1: Use find $dir -type d with the sorted output input into an array. Step 2: Set parent to 'start'; Iterate the sorted array and continue the loop if the array_ele was a child of parent - otherwise echo $dir and set parent=$dir Easy Peasy. But quite surprised both AI chats struggled to find a solution in bash (I limited the AI to bash).
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
How to solve any problem...
Platform to Solve Some of “First Impression Influence” Problem
Connect your problem and solve.
I built an app to solve my Texting problem
COMTIFY 1.1 – Trying to solve the problem of too many tools at work
Trying to solve the “too many tabs” problem
Organize all your prefered AI chats in one easy tab
Solve the Travelling Salesman Problem with the GPU
Can You Solve the Three Body Problem?
(For YC) Improvised Quora to Solve “First Impression Influence” Problem