← Amazon questions

Subtree Check and Max of K Sub-array

Filed under Amazon

Given two binary trees, check if the second tree is a subtree of the first. Also, given an unsorted array of integers and an integer k, find the maximum element in every contiguous sub-array of size…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.