Write a program that reads in a string and prints the character once it has been found to have duplicates (2 or more). The program should only print the character once, not every time a duplicate is found. The program should be faster than O(n^2).
Sdet Interview Questions
4,407 sdet interview questions shared by candidates
Given a array of integers, write code to find the max possible sum of sub-arrays. Use arithmetic progression.
Given a regular phone number dial pad, write code that will list out all the possible letter combinations that can be made given three numerical digits as input. For example, the base function would look like this: function numberToChars(int *numbers) { // would return an array of different character combinations // if input was 123 // output: adg, adh, adi, bdg, etc... }
How would you reverse a string?
How do you simulate the functionality of a queue using 2 stacks
Write algorithm for c compiler.
How to test a calculator?
Find the heaviest ball among 9 other similar balls using a libra
"How would you test the new Microsoft 'Spoon'" -- Basically they told me that microsoft was coming out with the latest and greatest in spoon technology and I was to test it. They were vague on all the questions I asked (everyone goes out of their way to tell you to ask plenty of questions, but it seemed to help absolutely nothing in this case).
The coding question was how to detect if a singularly linked-list is cyclic. Also discuss optimization of the solution and code it in any language of your choice.
Viewing 611 - 620 interview questions