Given 2 strings find the common words along with the time and space complexity. How would you optimize the algorithm
Sr Engineer Interview Questions
113,895 sr engineer interview questions shared by candidates
Nothing difficult. The unexpected is that they give you a fake business scenario and then you had to write up you recommendation for the business. Later in the day at one of your interview sessions they ask you for a printout of your recommendations. The instructions in the morning weren't very clear and there were printer issues so many of us messed up on that part.
"Given a log file spanning multiple days, and given a page transition A -> B -> C, find all the unique users who made this page transition in the logs"
Coding challenge
Write a function/method with this signature: bool MyFunc(string term, string input) {} The method should return true if the search term is found in the input string, even when there are other characters in between. Examples: "aba", "bbbbabbxxxxxxbb" returns false "aba", "bbbbabbxxxxxxab" returns true Basically, do I see an 'a', then 'b', then another 'a' before I run off the end of the input string?
Write a function that determines the divisors of an supplied parameter and which of those are prime numbers.
Given an integer array containing positive and negative numbers, how do you get the maximum sum of its sub-arrays? Continuous numbers form a sub-array of an array. For example, if the input array is {1, -2, 3, 10, -4, 7, 2, -5}, the sub-array with the maximum sum is {3, 10, -4, 7, 2} whose sum 18.
What is your highest educations
There will be lot of things which i cant explain.
int func() { static int i = 4; i++; return i; } int main() { int i = 0; for (i = 0; i< 4; i++) { printf("%d\n", func()); } }
Viewing 271 - 280 interview questions