Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, I was going for algorithmic complexity instead of real-world speed since algorithmic complexity is better to demonstrate the contrast of prompt engineering.

I just ran some tests to engineer the prompt for CPU utilization: even GPT-4 does the standard Pythonic approach but does recognize "This solution is very efficient because it uses Python's built-in string slicing, which is implemented in C and is therefore very fast."



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: