No matter on which language you have expertise its expected that you are familiar with fundamental of programming and can solve problems without taking help of API. specially for java developers programming questions present lots of challenges as compared to C++ programmer and I think reason for this powerful Java API which has method for almost every need and you rarely need to write by your own or there are lots of third party library from apace and other open source. These programming interview questions are of my personal collections and I have only chosen those which are not very difficult, can be solved easily but at same time can become too complex or confusing, present lots of follow-up questions and test fundamentals of programming. I have not given answers of these programming questions but those can be found by google and I will try to post links of answers here sometime later but at same time I will try to provide quick tips or hints on some questions. Anyone who is following programming questions must be familiar with these questions and also knows answer for most of these but for new guys and even for intermediate its worth refreshing it before going to any programming job interview.
This programming question is similar to above and can be solved by using 2 pointers, start second pointer when first pointer reaches third place. 12) How do you find if there is any loop in singly linked list? How do you find the start of the loop? This programming question can also be solved using 2 pointers and if you increase one pointer one step at a time and other as two steps at a time they will meet in some point if there is a loop. 13) How do you reverse a singly linked list?