Reverse the letters of words in a sentence. Then, reverse the sentence.
Software Development Interview Questions
36,992 software development interview questions shared by candidates
Generally covers all data structures and Algorithm question types.
1. Implement stack using queue 2. Merge two arrays and sort them in order as specified at runtime. The two arrays may share common entries between them, but the resultant array must not have duplicates.
Convert string to number. "123" to 123
Combination Problem: Write a method that finds all the unique unsorted combinations of a unknown element list without using any loops.
Given a building with 100 floors and windowpanes which can break if launched from the nth floor. Find out on which floor the windowpanes will break using only two on them.
find pair of numbers out of sorted array whose sum equal to given number
Given a string s of length n and an index i (0 <= i <= n). Using only constant extra space, how do you manipulate the string in-place to yield the string s[i, i+1, ... , n-1, 0, 1, ..., i-1]?
Are you married? Do you have any kids? Where do you live?
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.
Viewing 831 - 840 interview questions