LeetCode Question · Aug 2021

Amazon first round - rejected

3 upvotes 1,007 views 9 replies

Question Details

Given a 2D array with 0s and 1s, given these conditions: arr[i][j] = 1 if i is parent/grandparent of j arr[i][j] = 0, otherwise Find whether creating a binary tree is possible. Input: 0 1...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Binary Tree Matrix