Coding

Your task is to come up with a program that identifies all the triplets in an array whose sum is equal to a given target value.

Machine Learning Engineer

Uber

Walmart

Robinhood

Indeed.com

Zoox

Coupang

Did you come across this question in an interview?

  • Your task is to come up with a program that identifies all the triplets in an array whose sum is equal to a given target value.
  • Your task is to find all the triplets in a given array whose sum is equal to a target value.
  • Can you come up with an algorithm that identifies all possible triplets in an integer array that sum up to a target value?
  • I'd like you to design a function that takes an integer array and a target value as input and returns all the triplets whose sum is equal to the target.
  • How would you approach the problem of finding all the triplets that add up to a given target sum in an input array consisting of integers?
  • Design an algorithm that can find all possible triplets in an array of integers that sum up to a specified target value.
  • Given an integer array and a target value, can you write a function that returns all the triplets whose sum is equal to the target value?
  • Can you devise an algorithm that finds all possible triplets in an input array whose sum adds up to a specified target value?
  • I'd like you to create a function that takes an array of integers and a target value and returns all the triplets whose sum equals the target value.
  • How would you go about finding all possible triplets in an integer array that add up to a specified target value?
  • Given an array of integers, find all the triplets whose sum is equal to a given target sum.

Interview question asked to Machine Learning Engineers interviewing at Coupang, Broadcom, Etsy and others: Your task is to come up with a program that identifies all the triplets in an array whose sum is equal to a given target value..