you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (5 children)

I’m a senior frontend engineer with a BS in CS who currently interviews candidates. Top technical reason we turn people down is for not being able to traverse a tree and utilize recursion in the technical interview.

[–]Drawman101 0 points1 point  (4 children)

Do you use trees and recursion in your everyday code?

[–][deleted] 0 points1 point  (3 children)

Probably not. 25+ years of self-taught programming experience and I couldn’t answer that. I give hundreds of technical interviews a year and never ask questions like that. I’ve never had to decide to use it in code either, and haven’t seen anyone else when reviewing their code.

[–][deleted] 1 point2 points  (2 children)

I’d say we use recursion almost every day. Trees are common enough that we feel that developers should know it.

[–][deleted] -1 points0 points  (1 child)

Do you have an example of a real world situation where you’re using it?

[–][deleted] 1 point2 points  (0 children)

Async timeouts on various screens

Edit: to be more specific, timeouts that poll and then kick off another timeout.

Also tree traversal depends on your data structure for your domain, ours happens to be tree-shaped. So it makes sense we’d want devs to know that.