Software Developer Co Op Interview Questions | Glassdoor

Software Developer Co Op Interview Questions


Software developer co op interview questions shared by candidates

Top Interview Questions

Sort: Relevance Popular Date

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.pop(); } }

the stack solution is good, you can also use recursion void printReverse(ListNode node) { if(node == null) return; printReverse(; System.out.println(node.value); }

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

Design a function that will return a pointer to the n-th element from the end of a linked list.

1 Answer

Design an algorithm to compute the even parity bit for a binary input of any size.

1 Answer

What would you do if you saw an employee doing something dishonest.

1 Answer

What is a binary search tree and how to get an ordered array from the tree

1 Answer

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

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

A question on filters from Digital Communication! Which one is used for filtering noise?

1 Answer

Find duplicate value in an array containing 1-100

1 Answer
110 of 61 Interview Questions