Java Lead Interview Questions

6,747 java lead interview questions shared by candidates

The first question was about a given number of items, and 2 types of packages, first one could carry 5 items and the second only 1 and the question was: What is the minimal number of packages required to carry all the items with given number of packages? So you actually had 3 parameters, the number of items, the number of large packages and small packages and you should have returned the minimal packages that could carry the items. If the packages were not enough to carry the items the function should return -1. There was a static function ready to populate.
avatar

Java Software Engineer

Interviewed at Travelfusion

3.3
Jul 10, 2024

The first question was about a given number of items, and 2 types of packages, first one could carry 5 items and the second only 1 and the question was: What is the minimal number of packages required to carry all the items with given number of packages? So you actually had 3 parameters, the number of items, the number of large packages and small packages and you should have returned the minimal packages that could carry the items. If the packages were not enough to carry the items the function should return -1. There was a static function ready to populate.

Viewing 591 - 600 interview questions

Glassdoor has 6,747 interview questions and reports from Java lead interviews. Prepare for your interview. Get hired. Love your job.