3 ms·
> How would you know that they don't apply? Because implementing low level algorithms like that is almost never an issue for application programming in modern
by dragonwriter 5y ago
> How would you know that they don't apply?
Because implementing low level algorithms like that is almost never an issue for application programming in modern languages, for which robust libraries for such operations exist and are data agnostic.
Unless you are using Go, pretty much the only modern popular language that both features static typing and lacks generics, so that kind of algorithm re-implementation task might make some sense for screening application programmers using Go.
- moron4hire 5y agoYou usually have a structure that is already tree-like and need to write custom code to walk over it. If you're taking a tree-like thing and first extracting it to another tree structure just to do basic tree operations, then you're already performing tree-traversal and just wasting a lot of time, disk, CPU, and memory just to bundle every person-under-the-sun's tree structure needs into one place.
- dragonwriter 5y ago> you're taking a tree-like thing and first extracting it to another tree structure just to do basic tree operations, Why would you do that? The whole point of libraries of generic operations is that you can apply them to thing you have without copying.
- ThrowawayR2 5y agoSo who writes the libraries? It certainly isn't people who can't manipulate tree structures.
- foobarian 5y ago> Because implementing low level algorithms like that is almost never an issue for application programming in modern languages Except it is. You spend a lot of time traversing nested tree-structured data, validating it, sorting it, filtering it. If you can't do the simple inversion operation you have no hope with the more complicated stuff.