Software Engineer Interview Questions

467,266 software engineer 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 1831 - 1840 interview questions

Glassdoor has 467,266 interview questions and reports from Software engineer interviews. Prepare for your interview. Get hired. Love your job.