Full Stack Software Engineer Interview Questions

19,498 full stack software engineer interview questions shared by candidates

Alice and Bob need to pick apples from in orchard. Alice can pick apples from exactly A numbers of trees, Bob can pick from exactly B trees (A, B are both integers). The orchard is a row of N trees, on each tree there is a different number of apples. Given integers A, B and an array size N containing integers only, return the number of most apples Alice and Bob can pick together where: - Alice most pick apples from trees left to Bob's trees - Alice's and Bob's trees cannot overlap, that is they cannot pick from the same tree If A + B > N you should return 0
avatar

Full Stack Developer

Interviewed at Wix

4.1
Nov 23, 2022

Alice and Bob need to pick apples from in orchard. Alice can pick apples from exactly A numbers of trees, Bob can pick from exactly B trees (A, B are both integers). The orchard is a row of N trees, on each tree there is a different number of apples. Given integers A, B and an array size N containing integers only, return the number of most apples Alice and Bob can pick together where: - Alice most pick apples from trees left to Bob's trees - Alice's and Bob's trees cannot overlap, that is they cannot pick from the same tree If A + B > N you should return 0

Viewing 2421 - 2430 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 19,498 interview questions and reports from Full stack software engineer interviews. Prepare for your interview. Get hired. Love your job.