Skip to main content

Interview Questions

Review this list of 4,477 interview questions and answers verified by hiring managers and candidates.
  • Microsoft logoAsked at Microsoft 
    2 answers

    "BERT is a bidirectional encoder representation transformer. It takes a sequence of tokens and produces vector embeddings for each token. The BERT Model was trained on the task of next sentence prediction task and masked language modeling. The key difference between word2vec and BERT is that, word2vec produces semantic embeddings for each word, where as BERT produces contextual word embeddings based on the relationships between surrounding words. Example - Vector Embedding of lets say word "i"

    Sanmitra I. - "BERT is a bidirectional encoder representation transformer. It takes a sequence of tokens and produces vector embeddings for each token. The BERT Model was trained on the task of next sentence prediction task and masked language modeling. The key difference between word2vec and BERT is that, word2vec produces semantic embeddings for each word, where as BERT produces contextual word embeddings based on the relationships between surrounding words. Example - Vector Embedding of lets say word "i"See full answer

    Machine Learning Engineer
    Concept
  • Microsoft logoAsked at Microsoft 
    Add answer
    Machine Learning Engineer
    Concept
  • Meta logoAsked at Meta 
    Add answer
    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • Meta logoAsked at Meta 
    Add answer
    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • Meta logoAsked at Meta 
    Add answer
    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Meta logoAsked at Meta 
    1 answer

    "Functional requirement's: partial search while searching for users, products any keywords in the search. additional keywords in the filter Black listed words in the search. Non functional requirements: low latency, search through 2 Billion records recent search should be cached. Design: high reads, we should have caching enabled over the primary db storages. caching cluster can be added when the search load increases. read ahead. - check in cache (periodic cache refresh), lfu, lru "

    Sandeep Y. - "Functional requirement's: partial search while searching for users, products any keywords in the search. additional keywords in the filter Black listed words in the search. Non functional requirements: low latency, search through 2 Billion records recent search should be cached. Design: high reads, we should have caching enabled over the primary db storages. caching cluster can be added when the search load increases. read ahead. - check in cache (periodic cache refresh), lfu, lru "See full answer

    Machine Learning Engineer
    System Design
  • Meta logoAsked at Meta 
    Add answer
    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • Meta logoAsked at Meta 
    Add answer
    Machine Learning Engineer
    Concept
  • Hubspot logoAsked at Hubspot 
    Add answer
    Machine Learning Engineer
    System Design
    +1 more
  • Bloomberg logoAsked at Bloomberg 
    1 answer

    "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 
    Add answer
    Machine Learning Engineer
    System Design
  • Meta logoAsked at Meta 
    1 answer

    "FN Given text need to figure out is it following guidelines. Should notify the user in case of not following guidelines. Reason for failure should have misleading/spam/adult filters. NFN High availability High Scalability Low latency of processing Estimations 1M requests/min text - 10kb => 9.5GB/min => 14TB/day API fetchmoderationscore(text) score will be between 0 to 1 more than 0.8 => not following guidelines fetchmoderationscore(text, filter)"

    Deepak K. - "FN Given text need to figure out is it following guidelines. Should notify the user in case of not following guidelines. Reason for failure should have misleading/spam/adult filters. NFN High availability High Scalability Low latency of processing Estimations 1M requests/min text - 10kb => 9.5GB/min => 14TB/day API fetchmoderationscore(text) score will be between 0 to 1 more than 0.8 => not following guidelines fetchmoderationscore(text, filter)"See full answer

    Machine Learning Engineer
    System Design
  • Apple logoAsked at Apple 
    3 answers

    "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

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

    "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
  • Meta logoAsked at Meta 
    Add answer
    Machine Learning Engineer
    Analytical
  • Meta logoAsked at Meta 
    Add answer
    Machine Learning Engineer
    Concept
  • Apple logoAsked at Apple 
    24 answers
    +21

    "def is_valid(s: str) -> bool: stack = [] closeToOpen = { ")" : "(", "]" : "[", "}" : "{" } for c in s: if c in closeToOpen: if stack and stack[-1] == closeToOpen[c]: stack.pop() else: return False else: stack.append(c) return True if not stack else False debug your code below print(is_valid("()[]")) `"

    Anonymous Roadrunner - "def is_valid(s: str) -> bool: stack = [] closeToOpen = { ")" : "(", "]" : "[", "}" : "{" } for c in s: if c in closeToOpen: if stack and stack[-1] == closeToOpen[c]: stack.pop() else: return False else: stack.append(c) return True if not stack else False debug your code below print(is_valid("()[]")) `"See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Meta logoAsked at Meta 
    Add answer
    Machine Learning Engineer
    System Design
Showing 1821-1840 of 4477