LeetCode 109. Convert Sorted List to Binary Search Tree

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Nice solution, but its faster to just convert list to vector<int> and this problem becomes Leetcode 108.
Convert to vector is faster and takes up less memory, besides, you are not spoiling the original linked list

MrLeyt
Автор

How come I skipped your channel so far :)

veliea