In other words the correct choice of algorithm and data structure can dramatically simplify a problem and the amount of code and time needed to solve it.
It also means that having tools where you can quickly apply different techniques, ahem, composable functions, that you can search for more efficient solutions with a lot less effort. That doesn't solve the smartness problem but it makes it a lot more tractable.