Given a string, find whether it has any permutation of another string. Need to be efficient
Software Engineer Entry Interview Questions
420,341 software engineer entry interview questions shared by candidates
Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. All these operations of SpecialStack must be O(1). To implement SpecialStack, you should only use standard Stack data structure and no other data structure like arrays, list, etc.
Sum up integer array?
Recursively reverse a singly linked list.
1. What is a virtual? 2. If class has virtual function, what happens in compile time and in run time? 3. What is a polymorphism? 4. Write the function that gets array of chars and returns number of elements with 3 bits ON, performance is important. 5. Write the function that draws a line from x1,y1 to x2,y2 6. You have very long function with many return statements. You have to determine how much time it runs.
find a loop in a list
The hardest question I was hit with was to write a function that takes an integer N and returns an NxN matrix with incrementing integers in a spiral, from outside in.
I was not able to code reversing a Query using recursion. :(
Given an array of unsorted numbers, find triplets that equal a specified sum.
“You have all of the prices for a given stock for the next year. You can buy once and sell once in that year. How do you determine when to buy and sell to maximize your profit?”
Viewing 1291 - 1300 interview questions