Does anyone have any use for the “classic” data structures in JS? I mean things like linked list or b-trees
Some large companies like to ask about linked lists and binary trees and suchlike in JS interviews. As I've never used one in my life, nor have seen them used, I have always assumed it was either because interviewers use generic "software engineering" templates, or it's just an arbitrary way to trim down the number of applicants by focusing on those who still remember their CS from college well. JS's objects and dynamic arrays seem to do everything we need, and when we have special they tend to be different anyway.
Is that also your experience, or have you seen one of those classic data structure in use in the real world?
Submitted July 18, 2017 at 01:11AM by our_best_friend
via reddit http://ift.tt/2us0eHs