Given a sorted array [0-99] With input: [1, 5, 45, 86] Write a function that prints the empty regions, example Output: “0,2-4,6-44,46-85,87-99”
Software Developer Engineer Interview Questions
466,910 software developer engineer interview questions shared by candidates
Given a array of numbers, output the array like this: a1 <= a2 >= a3 <= a4 >= a5...
Mostly, they asked to describe my current responsibilities in detail.
1. Write a function to implement the "cat" command in Linux 2. Find the first character that only appears once in the whole string
Given a positive integer N, write a function to return a list of the first N fibonacci numbers in order. For example, if N=5, the output list is 0 1 1 2 3.
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 a large data file, consisting of ten-digit numbers separated by new-line characters. Write a program in C to sort it, using at most 20MB of memory. Make it efficient.
int i=14; if (i=15) i++; How much is i?
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?
Viewing 1001 - 1010 interview questions