Skip to main content

Meta Machine Learning Engineer Interview Questions

Review this list of 68 Meta Machine Learning Engineer interview questions and answers verified by hiring managers and candidates.
  • "Problem: Given an input string txt consisting of alphanumeric characters and the parentheses characters '(' & ')', write a function which removes the minimum number of characters to return a version of the string with properly balanced parenthesis. Answer: You can do this with a counter. Psuedo-Python Start with counter = 0 output = [] Iterate through the string, every time you encounter a '(', increment the counter. Add the character to the output. If you encounter a ')', decrement the coun"

    Michael B. - "Problem: Given an input string txt consisting of alphanumeric characters and the parentheses characters '(' & ')', write a function which removes the minimum number of characters to return a version of the string with properly balanced parenthesis. Answer: You can do this with a counter. Psuedo-Python Start with counter = 0 output = [] Iterate through the string, every time you encounter a '(', increment the counter. Add the character to the output. If you encounter a ')', decrement the coun"See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • Meta logoAsked at Meta 
    Machine Learning Engineer
    System Design
    +1 more
  • Meta logoAsked at Meta 
    Machine Learning Engineer
    Behavioral
    +1 more
  • Meta logoAsked at Meta 
    Machine Learning Engineer
    System Design
  • Meta logoAsked at Meta 
    +6

    "bool isValidBST(TreeNode* root, long min = LONGMIN, long max = LONGMAX){ if (root == NULL) return true; if (root->val val >= max) return false; return isValidBST(root->left, min, root->val) && isValidBST(root->right, root->val, max); } `"

    Alvaro R. - "bool isValidBST(TreeNode* root, long min = LONGMIN, long max = LONGMAX){ if (root == NULL) return true; if (root->val val >= max) return false; return isValidBST(root->left, min, root->val) && isValidBST(root->right, root->val, max); } `"See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +4 more
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Meta logoAsked at Meta 
    Machine Learning Engineer
    Behavioral
    +1 more
  • "Use an index, two pointers, and a set to keep track of elements that you've seen. pseudo code follows: for i, elem in enumerate(array): if elem in set return False if i > N: set.remove(array[i-N])"

    Michael B. - "Use an index, two pointers, and a set to keep track of elements that you've seen. pseudo code follows: for i, elem in enumerate(array): if elem in set return False if i > N: set.remove(array[i-N])"See full answer

    Machine Learning Engineer
    Coding
  • Meta logoAsked at Meta 
    Machine Learning Engineer
    Behavioral
    +1 more
  • "Implemented the Java code to find the largest island. It is similar to count the island. But in this we need to keep track of max island and compute its perimeter."

    Techzen I. - "Implemented the Java code to find the largest island. It is similar to count the island. But in this we need to keep track of max island and compute its perimeter."See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +2 more
  • Meta logoAsked at Meta 

    "Problem: Given a modified binary tree, where each node also has a pointer to it's parent, find the first common ancestor of two nodes. Answer: As it happens, the structure that we're looking at is actually a linked list (one pointer up), so the problem is identical to trying to find if two linked lists share a common node. How this works is by stacking the two chains of nodes together so they're the same length. chain1 = node1 chain2= node2 while True: chain1 = chain1.next chain2=chain"

    Michael B. - "Problem: Given a modified binary tree, where each node also has a pointer to it's parent, find the first common ancestor of two nodes. Answer: As it happens, the structure that we're looking at is actually a linked list (one pointer up), so the problem is identical to trying to find if two linked lists share a common node. How this works is by stacking the two chains of nodes together so they're the same length. chain1 = node1 chain2= node2 while True: chain1 = chain1.next chain2=chain"See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • Meta logoAsked at Meta 

    "We've identified the problem as a Design a Product question. Use the following framework for tackling these types of questions: Ask Clarifying Questions Identify users, behaviors, and pain points State product goal Identify current solutions Brainstorm new solutions Evaluate solutions Measure success Summarize We'll go through each of these step by step. Ask Clarifying Questions The PM interview isn't about your ability to come up w"

    Exponent - "We've identified the problem as a Design a Product question. Use the following framework for tackling these types of questions: Ask Clarifying Questions Identify users, behaviors, and pain points State product goal Identify current solutions Brainstorm new solutions Evaluate solutions Measure success Summarize We'll go through each of these step by step. Ask Clarifying Questions The PM interview isn't about your ability to come up w"See full answer

    Machine Learning Engineer
    Product Design
    +1 more
  • Meta logoAsked at Meta 
    +9

    "from typing import List def traprainwater(height: List[int]) -> int: if not height: return 0 l, r = 0, len(height) - 1 leftMax, rightMax = height[l], height[r] res = 0 while l < r: if leftMax < rightMax: l += 1 leftMax = max(leftMax, height[l]) res += leftMax - height[l] else: r -= 1 rightMax = max(rightMax, height[r]) "

    Anonymous Roadrunner - "from typing import List def traprainwater(height: List[int]) -> int: if not height: return 0 l, r = 0, len(height) - 1 leftMax, rightMax = height[l], height[r] res = 0 while l < r: if leftMax < rightMax: l += 1 leftMax = max(leftMax, height[l]) res += leftMax - height[l] else: r -= 1 rightMax = max(rightMax, height[r]) "See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +4 more
  • Meta logoAsked at Meta 

    "class TrieNode { constructor() { this.children = {}; this.isEndOfWord = false; } } class Trie { constructor() { this.root = new TrieNode(); } insert(word) { let node = this.root; for (const char of word) { if (!node.children[char]) { node.children[char] = new TrieNode(); } node = node.children[char]; } node.isEndOfWord = true; } search(word) { l"

    Tiago R. - "class TrieNode { constructor() { this.children = {}; this.isEndOfWord = false; } } class Trie { constructor() { this.root = new TrieNode(); } insert(word) { let node = this.root; for (const char of word) { if (!node.children[char]) { node.children[char] = new TrieNode(); } node = node.children[char]; } node.isEndOfWord = true; } search(word) { l"See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +3 more
  • Meta logoAsked at Meta 
    +3

    "I've been a student worker at the Renaissance Hotel, I've been doing Inventory in their closet, stripping rooms, cleaning guest floors and cleaning the fitness center, I've also been a student worker at GFS, My tasks were stocking items on shelf, checking expiration dates, cleaning the breakroom, refilling supplies bottles. Additionally, I've been a student worker at Hampton Inn. The tasks I've completed at Hampton Inn were similar to the Renaissance. The tasks there were stripping rooms, Cleani"

    Amparo L. - "I've been a student worker at the Renaissance Hotel, I've been doing Inventory in their closet, stripping rooms, cleaning guest floors and cleaning the fitness center, I've also been a student worker at GFS, My tasks were stocking items on shelf, checking expiration dates, cleaning the breakroom, refilling supplies bottles. Additionally, I've been a student worker at Hampton Inn. The tasks I've completed at Hampton Inn were similar to the Renaissance. The tasks there were stripping rooms, Cleani"See full answer

    Machine Learning Engineer
    Behavioral
    +2 more
  • Meta logoAsked at Meta 
    Video answer for 'Find the common ancestors in a tree.'
    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • Meta logoAsked at Meta 
    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • Meta logoAsked at Meta 
    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • Meta logoAsked at Meta 
    +5

    "Make current as root. 2 while current is not null, if p and q are less than current, go left. If p and q are greater than current, go right. else return current. return null"

    Vaibhav D. - "Make current as root. 2 while current is not null, if p and q are less than current, go left. If p and q are greater than current, go right. else return current. return null"See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +4 more
  • Meta logoAsked at Meta 

    "HashMap supports insert, search, delete and retrieve in O(1). It stores data as key value pairs."

    Ina K. - "HashMap supports insert, search, delete and retrieve in O(1). It stores data as key value pairs."See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
Showing 41-60 of 68