Facebook | Phone Screen | Convert a BST into a Doubly Linked List
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2016-10-06Added By Anonymous
Source: Link
Company: Meta (Facebook)
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list (premium)
Convert a BST to a sorted circular doubly-linked list in-place. Think of the left and right pointers as synonymous to the previous and next pointers in a doubly-linked list.
Node treeToList(Node root) {
}