Month: October 2018

Are Characters Unique in a String – Interview Question

Does a string have all unique characters? Let’s find out how to answer this question in a technical interview The first solution that comes to mind is to have two for loops. In the outer for loop, you pick one character from the string, let’s call it c1. You then compare c1 to rest of…
Read more


October 28, 2018 0

Find Middle Element in a Linked List – Interview Question

Find out middle element in a linked list. Let’s see how to answer this question in a technical interview. To begin with you can draw a linked list on the whiteboard. A linked list has nodes in it which are connected to each other. Each node has two components: the value and reference to next…
Read more


October 12, 2018 0