Doing leetcode absolutely makes your system design better and you don't deploy algorithms you don't know.
Invert a binary tree is kind of a strawman for the absolutist claim that you don't improve the cleverness by practice, but it's an example that not all the practice is useful