Software Engineers Interview Questions

419,495 software engineers interview questions shared by candidates

There is a company, modelled as a tree of employees and the people reporting to them. Every employee has a fun value. At a party, every employee only has fun if his direct boss is not at the party, otherwise he adds fun corresponding to his fun value to the party. Write code to find the maximum total fun that can be had at the party.
avatar

Software Engineer

Interviewed at Jane Street

4.4
Nov 22, 2012

There is a company, modelled as a tree of employees and the people reporting to them. Every employee has a fun value. At a party, every employee only has fun if his direct boss is not at the party, otherwise he adds fun corresponding to his fun value to the party. Write code to find the maximum total fun that can be had at the party.

Viewing 1851 - 1860 interview questions

Glassdoor has 419,495 interview questions and reports from Software engineers interviews. Prepare for your interview. Get hired. Love your job.