Pergunta de entrevista da empresa Samsung Electronics

Convert leaf nodes of a BST into linked list