12 ms·
Inverting a binary tree is nothing but basic pointer-chasing and recursion. Both skills that software engineers need. It's like a chef complaining about being
by TheCoelacanth 5y ago
Inverting a binary tree is nothing but basic pointer-chasing and recursion. Both skills that software engineers need.
It's like a chef complaining about being asked to make a fried egg. They might not be making that exact food in their job, but it's trivial for anyone proficient with the basic techniques that they need in their job.
- mcntsh 5y agoI'll say it again -- if these skills were something software engineers needed, there wouldn't be a need for services like Leetcode because SWEs would just learn these skills at their jobs.