Developer Interview Questions

269,104 developer interview questions shared by candidates

You have three sock drawers. One has red and blue socks, one has blue and green socks, and one has green and red socks. What is the expected number of socks you must pull to be sure which drawer is which, assuming that the number of socks of each color in each drawer is both large and equal?
avatar

Algorithm Developer

Interviewed at Hudson River Trading

4.1
Sep 27, 2024

You have three sock drawers. One has red and blue socks, one has blue and green socks, and one has green and red socks. What is the expected number of socks you must pull to be sure which drawer is which, assuming that the number of socks of each color in each drawer is both large and equal?

Given a character array, calculate the minimum no. of jumps from 1st alphabet to reach the last alphabet. CRITERION: From a given character, you can either: 1. Jump to the adjacent character 2. Jump to the same character positioned in a different place
avatar

Software Developer Internship

Interviewed at National Instruments

3.7
Apr 6, 2016

Given a character array, calculate the minimum no. of jumps from 1st alphabet to reach the last alphabet. CRITERION: From a given character, you can either: 1. Jump to the adjacent character 2. Jump to the same character positioned in a different place

programs.. 1.You are given a number in form of integer consist of digits from 0 to 9. Each digit consist of several dash ( see figure) . Your job is to calculate the number of dashes in the given number. -- -- -- | | | | | | | | | | | | -- -- -- -- | | | | | | | | | | -- -- -- 2.An array of integers is given and you have to split the array from the index where sum of left hand side elements is equal to sum of right hand side elements for eg.[1,1,0,2] this will be splitted in two parts [1,1] [0,2] [3,2,1,5,1] will be [3,2,1] and[5,1] 3.a string is given "i am in delhi" if "elh" is there in the given string in the same order('e' then 'l' then 'h') then print "YES" else "no" 4.Write a program to check whether string is pallindrom or not
avatar

Software Developer

Interviewed at Remaxys

4
Oct 14, 2016

programs.. 1.You are given a number in form of integer consist of digits from 0 to 9. Each digit consist of several dash ( see figure) . Your job is to calculate the number of dashes in the given number. -- -- -- | | | | | | | | | | | | -- -- -- -- | | | | | | | | | | -- -- -- 2.An array of integers is given and you have to split the array from the index where sum of left hand side elements is equal to sum of right hand side elements for eg.[1,1,0,2] this will be splitted in two parts [1,1] [0,2] [3,2,1,5,1] will be [3,2,1] and[5,1] 3.a string is given "i am in delhi" if "elh" is there in the given string in the same order('e' then 'l' then 'h') then print "YES" else "no" 4.Write a program to check whether string is pallindrom or not

Viewing 421 - 430 interview questions

Glassdoor has 269,104 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.