Fresher Software Interview Questions

4,692 fresher software interview questions shared by candidates

Ramu has N dishes of different types arranged in a row: A1,A2,…,AN where Ai denotes the type of the ith dish. He wants to choose as many dishes as possible from the given list but while satisfying two conditions: He can choose only one type of dish. No two chosen dishes should be adjacent to each other. Ramu wants to know which type of dish he should choose from, so that he can pick the maximum number of dishes.
avatar

Fresher

Interviewed at Infosys

3.6
May 28, 2022

Ramu has N dishes of different types arranged in a row: A1,A2,…,AN where Ai denotes the type of the ith dish. He wants to choose as many dishes as possible from the given list but while satisfying two conditions: He can choose only one type of dish. No two chosen dishes should be adjacent to each other. Ramu wants to know which type of dish he should choose from, so that he can pick the maximum number of dishes.

Viewing 771 - 780 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 4,692 interview questions and reports from Fresher software interviews. Prepare for your interview. Get hired. Love your job.