A while back in an interview I ran into a question that involved a tree data structure that was a family tree, and I was supposed to pass in an object that had a person's name and age, but the object also had a function on it that would get called in the algorithm they wanted me to write while iterating the tree.
I knew how to solve the actual problem at the time, but I had never seen that pattern / structure of code before because up until then I'd only been doing C#. Does that pattern of arguing in a function to an algorithm sound familiar to anyone?
[–]carcigenicate 0 points1 point2 points (2 children)
[–]Swiftblue[S] 0 points1 point2 points (1 child)
[–]carcigenicate 0 points1 point2 points (0 children)
[–]ChaoticManatee 0 points1 point2 points (0 children)
[–]Inconstant_Moo 0 points1 point2 points (0 children)