Bulls_Rose Posted May 31, 2018 Report Posted May 31, 2018 sample assingment ichru interview ki...google cheste some answers dorikayii gani not able to write with numbers. ## Second question: ## you need to define the tree/node object and also define the function to serialize the tree class Node: pass def serialize_tree(tree): """ Serialize a tree from top to bottom, left to right to a list of values Args: a Tree object, each node has an integer value, and optionally have a left and right children, The tree is not ordered or balanced, it's just a binary tree example: 1 / \ 2 3 / \ / \ 4 2 Returns: a list of serialized values example: [1,2,3,None,4,2,None] """ Quote
Bulls_Rose Posted May 31, 2018 Author Report Posted May 31, 2018 Just now, Biskot said: c# ?? ltt python. but any language is fine Quote
Gutka_Paandu Posted May 31, 2018 Report Posted May 31, 2018 https://leetcode.com/problems/serialize-and-deserialize-binary-tree/description/ - Problem https://leetcode.com/problems/serialize-and-deserialize-binary-tree/discuss/ - solutions in all languages Quote
Bulls_Rose Posted May 31, 2018 Author Report Posted May 31, 2018 8 minutes ago, Gutka_Paandu said: https://leetcode.com/problems/serialize-and-deserialize-binary-tree/description/ - Problem https://leetcode.com/problems/serialize-and-deserialize-binary-tree/discuss/ - solutions in all languages great. thank you. Quote
Demigod Posted May 31, 2018 Report Posted May 31, 2018 good luck rose..with the screening and interview.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.