Find the length of the longest palindrom in a given string
Software Engineer Interview Questions
420,103 software engineer interview questions shared by candidates
print all permutations of a string
(1) two sums : given a list of numbers, return the indexes of two values whose sum is a given value. (2) Revers a string list
Sum up integer array?
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.
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.
Accurately (this is the catch) read a 64bit register value using a method that can read only 32bit at a time
How would you reverse the words in a string?
write a boolean method to find out if a number is a power of 2
1- Given an array of integers, positive and negative. find an interval in that array, whose elements constitutes the maximum sum
Viewing 1281 - 1290 interview questions