Hsf affiliates llc Interview Questions

Hsf affiliates llc Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(20)
Machine Learning
(6)
Behavioral
(5)
SQL
(4)
Statistics
(4)

Hsf affiliates llc Interview Questions

Practice for the Hsf affiliates llc interview with these recently asked interview questions.

QuestionTopicDifficulty
Data Structures & Algorithms
Medium

You are given a list of integers called numbers. Write a function to return any subset of numbers where the elements sum to zero and that does not contain the number 0.

If there are no combinations of elements that sum to zero, return an empty list.

Example 1:

Input:

numbers = [1,-2,6,7,1]

Output:

def zero_sum(numbers) -> [1,-2,1] # only possible combination

Example 2:

Input:

numbers = [0,0,1,3,6,-4,-1]

Output:

def zero_sum(numbers) -> [1,3,-4]

or

def zero_sum(numbers) -> [1,-1]

or any other subset that sums to zero and doesn’t include 0.

Machine Learning
Medium
Statistics
Easy
Loading pricing options

View all Hsf affiliates llc questions

Challenge

Check your skills...
How prepared are you for working at Hsf affiliates llc?

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.

Discussion & Interview Experiences

There are no comments yet. Start the conversation by leaving a comment.

Jump to Discussion