Interview Round DistributionClick any round below to filter
Topics:
Showing 20 of 102 results for FairePage 1 of 6
Coding
47
Iterator over a Binary Search Tree
Implement an iterator over a binary search tree.
Input: root = [7,3,15,null,null,9,20], calls: next(), hasNext(), next()
Output: 3, TRUE, 7
Explanation: The iterator yields the smallest value (3), confirms more nodes exist, then properly yields the next in-order value (7).
Longest Consecutive Sequence
Determine the length of the longest consecutive elements sequence.
Input: nums = [0,3,7,2,5,8,4,6,0,1]
Output: 9
Explanation: The longest consecutive sequence is 0 through 8 (length 9), utilizing a hash set to check connectivity in linear time.
Continuous Subarrays Sum Equals K
Find the total number of continuous subarrays whose sum equals K.
Input: nums = [1,2,3], k = 3
Output: 2
Explanation: Both the contiguous subarray [1,2] and the single-element subarray [3] sum perfectly to the target of 3.
Validate if a given tree is a valid binary search tree.
Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key, and the right subtree contains only nodes with keys greater than the node's key…
Identify the primary takeaways from this visual report. How do you transition to the raw data layer to cohort the users and isolate the source of the spikes?
Design a system for a document Q&A application: Explain your embedding strategy, retrieval method, prompt templates, output parsing, and how you would measure success.
Data Scientist#Strings#Machine Learning#LLM & GenAI