Facebook | Phone | pow(x, n) & Inorder Predecessor in BST
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-03-17Added By Anonymous
Source: Link
Company: Meta (Facebook)
Role: e3, e4
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Question1:
Implement method to calculate x to the power of n: https://leetcode.com/problems/powx-n/
Question 2:
Given a target node in a BST, find the predecessor node. Note: not the parent note, but the next smallest value in the BST.