Write a function (in your preferred language C, C++, or Java) that will take the given string and return the reverse. (ie. input:"abc def ghi" output:"ihg fed cba") Optimize the above code (if possible). Now knowing that the original function you wrote in pt1 is being used by other programs and cannot be modified write another function that when called will utilize the function from pt1 to only reverse the words in the sentence. (ie. input:"abc def ghi" output:"ghi def abc") Test your code.
Graduate Software Engineer Interview Questions
3,309 graduate software engineer interview questions shared by candidates
Find if there is such a line parallel to y-axis so that the given set of points are reflected with respect to the given line.
Define how search keyword suggestion (such as the suggestions in google search) can be implemented.
String decomposition: given a string, as you go through the string, if you encounter a substring that has been seen previously, you output that substring plus the next character in the original string.
What does volatile mean?
Given a linked list of elements defined as objects of a given class delete elements from the linked list that are found in an array.
Given a list of direct airport connections, print all possible paths between two airports.
How many bytes to represent a hexadecimal value?
Onsite Q4: you have to create a generic message class that will be sent periodically to a list of contacts given.
Explain a sorting method and why do you choose it?
Viewing 21 - 30 interview questions