1. Write a function to implement the "cat" command in Linux 2. Find the first character that only appears once in the whole string
Software Interview Questions
550,813 software interview questions shared by candidates
f has the following contract: For any two strings, s1 & s2, then: f(s1)==f(s2) if and only if strcmp(s1,s2) == 0 Design a function that satisfies this contract.
How do you write an algorithm to count all subsets of strings in a string.
you have two eggs, and a 100 storey building, find out the highest floor to throw them from so that they wont break, and in minimum number of tries.
You have 25 horses, and you want to know which are the top 3 fastest, but you don't have a stopwatch. You can race the horses, but the track is only big enough to fit 5 horses at a time. How do you find the first, second and third fastest horses using the least amount of races possible?
Possible anagrams of a string ...
decide whether the enter should be accepted or not for a passcode, one number missing is permitted, can be missed several times, 18687 is the passcode, then 167 is accepted, the rest should be right and in right sequence.
given a matrix, you can move right or down only and cost of each move is 1. Find an optimal way to reach to right-bottom from top-left of the matrix.
given 2 unsigned ints a and b, return 1 unsigned int = a/b, rounded to nearest int without float operation
Viewing 1291 - 1300 interview questions