hate coded and optimized
You "hate coded", BUT you went backed, and fixed the solution with better code (examples: more elegant algorithm, efficient use of memory, better performance, better use of data structures, easier to read and/or maintain, added comments, added unit testing, etc)
I solved day 3 of the Advent of Code, and I hate coded and optimized a solution.