"I was just asked to balance a Binary Search Tree by JFK's airport immigration. Welcome to America." An Andela engineer talks about what happened to him on Sunday: https://www.linkedin.com/pulse/software-engineer-detained-several-hours-us-customs-given-fairchild
I find this hard to believe.
omgmg, I would so lay on the peanut butter thick! It's not like the border agent would know the difference! "Well, we start with the root of the tree, called the Trunk. Then you construct sap objects whose goal is to traverse the tree from the root to the trunk to the branches to the leaves. Then as the sap traverses the tree, you put the info in a bark object which surrounds the tree. Now once you've obtained your bark object, you have all the information necessary to construct a new tree. You walk your bark object until you find a seed, which will become the new root of your balanced tree. You need to pass the seed to a Dirt () constructor and pass along a hydro component, otherwise your tree size will be severely limited. And now that your seed object is fully initialized, all you have to do is to take your bark object's sun exposure and you make everything on North and East go in the right branch of the seed, and everything that was south and west go in the left branch. Repeat until you're out of bark. The result is a BST. lolol!! Bam Bam. Then they'll be like, yup. Engineer. Move along!!
And go through it really fast!
Tough question. I wouldn't be able to write AVL or Red black implementation on the spot
Must be fake news ...
Good opportunity to publish "Cracking the Border Security Code Interview"
Bam Bam Lolol!!
ICE = TSA with guns
sounds like a PR story by the startup.
It's a hoax
how do you know?