Write a routine to determine if a linked list has a cycle.
Engineer Software Interview Questions
511,875 engineer software interview questions shared by candidates
Give me 5 different ways of finding the median (middle element) of a linked list. For the sake of simplicity, assume the list has odd number of ints. Also mention the runtime for each. Follow up: What's the fastest way you could find the median? What is the runtime? Oh.. and yes, code your answer(s) in any language of your preference.
Write a function to find the maximum sum of sub array where the array can have negative and positive numbers.
Find the character with longest repitition in the string e.g. aaacccddddeefffffffg the result should be 'f'.
what was a technical difficulty and how have you overcome it.
The numbers 1-5 are inserted, in order, into a stack. Numbers are removed from the stack one-by-one and pushed into another array (numbers could be removed at any time, even before all the numbers have been added to the stack). What order of numbers in the array could NOT be produced by this scenario? Write code to determine if a sequence of numbers could have been produced by this scenario.
Given an array of items of three different colors red, green, blue. How would you sort the items in the array so that all the items with a certain color would be grouped together.
if you have a linked list ordered like : n1-n2-n3-n4-n5-n6-n7-NULL. how to sort it to be at the order : n2-n1-n4-n3-n6-n5-n7-NULL
find duplicated item from an array, output the duplicated item with their times
Print a binary tree level by level in zigzag order
Viewing 1001 - 1010 interview questions