Software Engineer Co Op Interview Questions | Glassdoor

Find jobs for Software Engineer Co Op

Software Engineer Co Op Interview Questions

108

Software engineer co op interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular 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); }

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

1 Answer

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

1 Answer

The detail of my recent course project

1 Answer

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

1 Answer

When is the right time to optimize the code?

1 Answer

write a c program to find the average off the top half of N numbers

Given a list of names in a file choose a random name .

Asked to explain some stuff on resume like projects and stuff.

110 of 108 Interview Questions