Convert Sorted Array to Binary Search Tree at Apple
Easy75.2% acceptance
This problem has 34.7% 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 8 companies
More Apple Questions
Two SumEasyNumber of IslandsMediumMerge IntervalsMediumBest Time to Buy and Sell StockEasyDesign Hit CounterMedium
View all Apple questions