Facebook Phone Interview

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-04-23Added By Anonymous
Source: Link

Company: Meta
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

Question:
Given a list of integers and a number (say total), find how many ways by adding '+' , '-' or nothing can make the total number.

Example:
List : 1, 2, 3
Total : 9

Possible ways to make 9 from 1,2,3 -> (12 - 3) -> 1

Comments