LeetCode Question · Jul 2022 · Los Angeles

UBER | OA

3 upvotes 810 views 3 replies

Question Details

You are given a tree of N nodes rooted at node 1. The tree will be given as an array p of size (N-1), where p[i] (0<=i<N-1) represents the parent...

Full Details

🔒

Unlock all Uber questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a uber interview for a swe role during the oa round reported in 2022.

It covers the following topics: Arrays, Binary Tree, Math .