A number of companies visit campus each semester to interview seniors for professional entry-level positions that start after graduation and current students for career related internships. Are you getting ready to leave your college and you are anxiously getting ready for your job search. Campus interviews can be nerve-wrecking for any student. Review the interview [...]
Q.) Explain what happens, step by step, after you type a URL into a browser Use as much detail as possible Ans There’s no right, or even complete, answer for this question This question allows you to go into arbitrary amounts of detail depending on what you’re comfortable with Here’s a start though: Browser contacts [...]
Q.) Implement an algorithm to delete a node in the middle of a single linked list, given only access to that node ans.) The solution to this is to simply copy the data from the next node into this node and then delete the next node NOTE: This problem can not be solved if the [...]
Q.) Write code to remove duplicates from an unsorted linked list Ans) If we can use a buffer, we can keep track of elements in a hashtable and remove any dups: public static void deleteDups(LinkedListNode n) { Hashtable table = new Hashtable(); LinkedListNode previous = null; while (n != null) { if (table.containsKey(n.data)) previous.next = [...]
Q. Write code to reverse a C-Style String (C-String means that “abcd” is represented as five characters, including the null character ) A.) This is a classic interview question The only “gotcha” is to try to do it in place, and to be care-ful for the null character void reverse(char *str) { char * end [...]
You’ve purchased this book, so you’ve already gone a long way towards good preparation Nice work! That said, there are better and worse ways to prepare Many candidates just read through problems and solutions Don’t do that! Memorizing or trying to learn specific questions won’t help you! Rather, do this: Try to solve the problem [...]


