int Solve(string str); Given the signature above, implement the simplest method that returns the results of the following arguments: 1. “3+5” (8) 2. “10+2-8” (4) 3. “5+10*3” (35) 4. “3+5--6" (14)
Software Development Interview Questions
36,991 software development interview questions shared by candidates
Group of people, you can call Know(i,j) to ask if ith person knows jth, the return value is true (i knows j) or false (i does not know j). Find the person that everybody else knows him but he knows nobody.
Given length of 3 sides as input, tell whether they form a valid triangle or not. Write all possible test cases to check your algo..
Delete n-th element from linked list. Note, you don't have a pointer to the Head of the list.
Given the definition of a Fibonacci sequence, write a function to give the n-th term of the sequence.
finad all plaindromes ina string.
Pick out k random elements from a very long linked list
with that go like this: you have an array of string you should print all the word by group. group define: by the same letters and the same number of repeated letter like example: dad,add,dda in same group it should be in O(N)
Round1 : 1) Given a list of words, group them by anagrams Input: List of "cat", "dog", "god" Output: A Set of Sets of anagrams: {{'cat'}, {'dog', 'god'}} 3) Consider adding some additional tests in doTestsPass(). 4) Implement the AnagramSolution group() method correctly. 5) If time permits, try to improve your implementation. dog -> dgo -> {dog} god -> dgo -> {dog, god}
Round3 : Question1 : How will you implement your own ThreadPool using jdk1.4like that of Executor in jdk1.5 Question2: How will you convert a monolithic application like makemytrip into Microservices? Question3: We have less number of resources for the tasks, so are you ready to work in odd extended hours?
Viewing 961 - 970 interview questions