Software Developer Co Op Interview Questions | Glassdoor

# Software Developer Co Op Interview Questions

61

Software developer co op interview questions shared by candidates

## Top Interview Questions

Sort: Relevance Popular Date

### Software Development Engineer Co-Op at Amazon was asked...

Apr 30, 2012
 How to print a link list reversely 3 Answers The simplest solution would be: 1. Traverse a linked list from head to tail 2. During traversal, push all the elements of the node into a stack 3. Once the traversal is done, pop all elements and this will print the linked list in reverse order ... Looking fwd for an optimized solution ... void printLLreverse(Node *headNode) { //this is going to just iterate through the LL //add each element to a stack and //print the stack when we are finished stack llStack; Node* currNode = headNode; while(currNode) { llStack.push(currNode->data); currNode = currNode->next; } while(llStack.size() > 0) { cout << llStack.top(); llStack.pop(); } } the stack solution is good, you can also use recursion void printReverse(ListNode node) { if(node == null) return; printReverse(node.next); System.out.println(node.value); }

### Software Development Co-op at Amazon was asked...

May 6, 2011
 Given an array of size [i..n], find the product of all the elements of the array except for the element at index b, where b is an arbitrary element. 2 Answers The trick here is that there's a slow way and a fast way to do this. The slow way is n^2 and trivial. The quick way (there are actually 2 but one is a bit faster) is as follows in pseudocode: for x in [i..n] : -- product = product*x product = product / b Essentially the solution is to run up a product and then divide everything by b. Swap the element at index B with 1 compute the product using a loop (as above) Index "B" will generate a "product x 1" condition. Which won't change the product. This is cheaper than either doing a division at the end (division is expensive), or checking "is the index b? then skip it" during each loop iteration. Swap the element at index B with the original value

### Software Development Engineer Co-Op at Amazon was asked...

Jul 7, 2011
 Design a function that will return a pointer to the n-th element from the end of a linked list. 1 Answer Note, this is NOT a doubly linked list. You can only transverse in one direction, from head to tail. Assume the list is not circular, but bonus points if you can write a function that will also detect if the list is circular using the tortoise and hare algorithm.

### Software Development Engineer Co-Op at Amazon was asked...

Jul 7, 2011
 Design an algorithm to compute the even parity bit for a binary input of any size. 1 Answer You must use some combination AND, OR, XOR, bitwise shift left and bitwise shift right.

### Software Developer Co-Op at Rockwell Automation was asked...

Mar 12, 2013
 What would you do if you saw an employee doing something dishonest. 1 Answer I think I messed my answer up for this question.

### Software Development Engineer Co-Op at Amazon was asked...

Apr 30, 2012
 What is a binary search tree and how to get an ordered array from the tree 1 Answer Do inorder traversal

### Software Developer Co-Op at Susquehanna International Group was asked...

Jan 14, 2014
 If I have a fair, shuffled deck of cards without jokers, what are the odds that if I pull the top two cards from the deck, that they are a pair? 3 Answers 3/51...The first card does not matter, so it has a probability of 1 and the second card has a probability of 3/51 because there are now 3 cards of that number left and 51 cards left in the deck. Multiply 1*3/51 and you get 3/51 3/51 = 1/17 C(13, 1)*C(4,2)/C(52,2) = 1/17

### Software Developer Co-Op at Susquehanna International Group was asked...

Jan 14, 2014
 Write a function that is passed a string and determines whether or not the string is a palindrome. (They had me write on the whiteboard in front of them.) 1 Answer I used for-loops and character arrays and got the question right.

### Software Development Co-op at Philips was asked...

Feb 12, 2013
 A question on filters from Digital Communication! Which one is used for filtering noise? 1 Answer Band Pass filter

### Junior Software Developer Co-op at LifeYield was asked...

Mar 30, 2015
 Find duplicate value in an array containing 1-100 1 Answer (sum of numbers in array) - n(n+1)/2 (n=100)
110 of 61 Interview Questions

More