Loading...
Engaged Employer
Write a function to serialize a binary tree.
Anonymous
I just stored the tree in an array with the index corresponding to its position in the tree.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.