logo
Interview
    Interview Guide
    Coding Problems List
Sponsored: Coursera
Problems

Convert Binary Search Tree to Doubly Linked List

Problem

Convert a binary search tree to doubly linked list with in-order traversal.

Example

Given a binary search tree:

    4
   / \
  2   5
 / \
1   3

return 1<->2<->3<->4<->5

Online Judge