/Co-op Engineer Interview Questions | Glassdoor

/Co-op Engineer Interview Questions

879

/Co-op engineer 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.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); }

There are two rooms - one has three light bulbs, the other has three switches. You can go to the room with the bulbs ones. How will you find out which switch turns on which light bulb.

3 Answers

Explain the most innovative idea or concept that you have implemented with limited use of resources

1 Answer

How do you handle difficult people?

1 Answer

Tell me about a time when you were forced to solve a problem under unfamiliar circumstances.

1 Answer

How did you work on a team to solve a problem

1 Answer

what makes you stand out from the crowd? (i think it was something similar to this).

1 Answer

what made you choose EMC?

1 Answer

based on the I/O table given, draw K map and give out the corresponding logic expression;

1 Answer

circuit analysis about capacitors and nMOS.

1 Answer
110 of 879 Interview Questions