Fresher Software Interview Questions

5,364 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 881 - 890 interview questions

See Interview Questions for Similar Jobs

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