Interview Round DistributionClick any round below to filter
Topics:
Showing 20 of 99 results for HelloFreshPage 1 of 5
Coding
47
Pacific and Atlantic Water Flow
Calculate water flow from a matrix to the Pacific and Atlantic oceans.
Input: heights = [[2,1],[1,2]]
Output: [[0,0],[0,1],[1,0],[1,1]]
Explanation: All cells can flow to both oceans because water can move to adjacent cells of equal or lower height or directly off the edges.
Serialize and Deserialize N-ary Tree
Serialize and deserialize an N-ary tree.
Input: root = [1]
Output: 1
Explanation: The tree only contains a root node, resulting in a minimal serialized string representation that can be accurately rebuilt.
Split Array into Consecutive Subsequences
Split an array into consecutive subsequences.
Input: nums = [1,2,3,4,4,5]
Output: FALSE
Explanation: The numbers can form [1,2,3,4], but the remaining leftover group [4,5] is too short to form a valid sequence of length 3.