Imagine you have only two eggs and a 100 story building in front of you. Describe an algorithm (or technique) to minimize the number of throws (or tries) to determine where the egg will start to break when thrown off the building. If the egg breaks when thrown from that floor, it will always break from that floor or higher (i.e. all eggs have the same results per floor; they break or they don't).
Senior Software Engineer Java Developer Interview Questions
95,558 senior software engineer java developer interview questions shared by candidates
What's your salary?
2 - in C#, can you tell whether whatever the user has input is a string or integer?
We have m slots for ads and n ads, each ads will have different revenue on differnet slot, design an algorithm to find out the best fit (find m ads in n ads and order them so that they can make max money, white board coding) .
Given a file that represent a graph, write an algorithm that compute the number of triangles in the graph.
Given an array of numbers, create another array of numbers. Calculate each new array number by multiplying all input array numbers, except for the current number position in the new array.
simple leetcode medium questions based on trees, sliding window and one design question. Be careful since they do not understand basic algorithm terms and data structures since they were all contractors before.
Input is a string like "AAAAABBCCAA" and it should print "5A2B2C2A". 5 being the continuous number of occurance for character 'A'. Same is with other characters also.
What is the output of below program. var a = [1,2,3,4] for (var i=0; i<a.length; i++){ setTimeout(function(){ console.log(i) },1000) } ( My Ans : it will print 4 5 times as it will store the latest reference) Next They asked me : How can i print 1,2,3,4 by changing some code in above example
Design a linked list operation that takes a singly-linked list (only forward ptrs, no backward ptrs) as input and reverses the list.
Viewing 151 - 160 interview questions