Given 2 strings find the common words along with the time and space complexity. How would you optimize the algorithm
Software Interview Questions
551,385 software interview questions shared by candidates
In a collection of strings, output the string that occurs most often.
There was no unexpected or difficult Question. 1. Find the first non repetitive character in a character stream. 2. Check for prime number and Elevator system design. 3. Agent bidding system design 4. Find for subtree within a larger tree.
I am under NDA and cannot elaborate but they were not difficult. If you are decent at software engineering and practice with Cracking the Coding Interviews then you would be able to do them easily.
Debugging questions will be of 7 questions for 21 minutes. Ex: An array will be sorted in descending you need to change the code to sort it in ascending.
Logic questions/debugging in the first section. A work simulation in the 2nd part with a 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?
Remove duplicates from a linked list. O(n) time.
Tell me about a time when you disagreed with the work direction you were given, and how you resolved it.
(onsite questions) Tell me about the code you wrote? Walk me through how it works. Is there anyway you think you can optimize it?
Viewing 2781 - 2790 interview questions