1051. Height Checker
Description
**Input:** heights = [1,1,4,2,1,3]
**Output:** 3
**Explanation:**
heights: [1,1,4,2,1,3]
expected: [1,1,1,2,3,4]
Indices 2, 4, and 5 do not match.**Input:** heights = [5,1,2,3,4]
**Output:** 5
**Explanation:**
heights: [5,1,2,3,4]
expected: [1,2,3,4,5]
All indices do not match.ac
Previous1050. Actors and Directors Who Cooperated At Least Three TimesNext1052. Grumpy Bookstore Owner
Last updated