← Amazon questions

Count unique pairs summing to target and subtree check

Filed under Amazon

Part 1: Given an integer array and a target value, count the number of unique pairs (a, b) such that a + b = target. Part 2: Given two binary trees S and T, determine if S is a subtree of T. A subtree…

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.