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
Senior Software Engineer Interview Questions
64,327 senior software engineer interview questions shared by candidates
Longest Valid parantheses -Hard qustion from leet code.
All the question was from oops,and how you implement opps in your project.The most difficult question was diffence between static class and single pattern,they drill down it.
how do you handle conflict
How do you write "a program for odd number" in single line without using an operator ?
* 2D row and column wise sorted matrix, find kth maximum.(with negative values also in consideration)
Ability to work czech hours
(As a take-home programming challenge,) write code that will validate a "Boggle" board i.e. given a virtual board (collection of letters) and a dictionary, find words in the virtual board.
Open ended question on Car design
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