Software Development Interview Questions

36,992 software development interview questions shared by candidates

Given a sorted array of integers in increasing order (can contain duplicates), return the last index of a specified target integer, or return -1 otherwise. Thus 1, 2, 2, 3, 4 and the target is 2, the function should return 2.
avatar

Software Development Engineer Intern

Interviewed at Amazon

3.5
Apr 2, 2017

Given a sorted array of integers in increasing order (can contain duplicates), return the last index of a specified target integer, or return -1 otherwise. Thus 1, 2, 2, 3, 4 and the target is 2, the function should return 2.

Viewing 761 - 770 interview questions

Glassdoor has 36,992 interview questions and reports from Software development interviews. Prepare for your interview. Get hired. Love your job.