Part 1: Given heights of people and an array indicating the number of people taller/smaller in front of them, reconstruct the queue/order. Part 2: Find the Longest Increasing Subsequence (LIS) path…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.