Senior Software Engineer Interview Questions

64,327 senior software engineer interview questions shared by candidates

We express the initial line of n people as an array, tickets = [ticket(0),ticket(1),...,ticket(n-1)] where each tickers, denotes the number of tickets that person i wishes to buy. If Jesse is located at postion p. How many seconds will it take for him to purchase the tickets. For example if tickets = [1,2,5] and p=1 the first five Following rules should apply: 1.The person at the head of the line can by exactly one ticket and must exit the line 2.If a person needs to purchase additional tickets, they must re-enter the end of the line in wait to be sold the next ticket (assume exit and re-entry takes 0 seconds) 3.Each ticket sale dates exactly one second. Find the time taken
avatar

Senior Software Engineer

Interviewed at Apple

4.1
Dec 18, 2017

We express the initial line of n people as an array, tickets = [ticket(0),ticket(1),...,ticket(n-1)] where each tickers, denotes the number of tickets that person i wishes to buy. If Jesse is located at postion p. How many seconds will it take for him to purchase the tickets. For example if tickets = [1,2,5] and p=1 the first five Following rules should apply: 1.The person at the head of the line can by exactly one ticket and must exit the line 2.If a person needs to purchase additional tickets, they must re-enter the end of the line in wait to be sold the next ticket (assume exit and re-entry takes 0 seconds) 3.Each ticket sale dates exactly one second. Find the time taken

Given 2 contracted arrays in the form : {times, number, times, number .... ] multiply these array expanding them. Example: [1,2,2,4] is equivalent to [2, 4, 4] and [2,1,1,4] is equivalent to [1, 1, 4] the result would be [(1x2), (1x4), (4x4)] = [2, 4, 16]
avatar

Senior Software Engineer

Interviewed at X

3
Apr 20, 2021

Given 2 contracted arrays in the form : {times, number, times, number .... ] multiply these array expanding them. Example: [1,2,2,4] is equivalent to [2, 4, 4] and [2,1,1,4] is equivalent to [1, 1, 4] the result would be [(1x2), (1x4), (4x4)] = [2, 4, 16]

Viewing 591 - 600 interview questions

Glassdoor has 64,327 interview questions and reports from Senior software engineer interviews. Prepare for your interview. Get hired. Love your job.