Convert Sorted Array to Binary Search Tree at Apple
Easy75.2% acceptance
This problem has 37.5% frequency at Apple.
Problem Description
Given an integer array `nums` where the elements are sorted in **ascending order** , convert _it to a_** _height-balanced_** _binary search tree_.
Read full problem and hintsTopics
Also asked at 9 companies
More Apple Questions
Two SumEasyMerge IntervalsMediumBest Time to Buy and Sell StockEasyNumber of IslandsMediumLongest Common PrefixEasy
View all Apple questions