Yahoo interview question - Combination of numbers

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2019-05-29Added By Anonymous
Source: Link
Company: Yahoo
Role: unknown
Interview Stage: unknown
Location: unknown
Year: unknown

Original Experience:
Given a number N, find combination(a,b,c,d) where a<b<c<d and a+b+c+d=N. such that a is a prime number and b, c, d are odd numbers. can you solve it using BST ?? ex- N=24 then a=3,b=5,c=7,d=9
Comments