Find an element in a rotated sorted array. Yesterday I came across an interesting problem where we need to find an element from an array which is sorted and rotated. For example – 3 , 4 , 5 , 6, 1, 2 The above array is a sorted array which has been rotated to the
Read More…
Recently I was asked in one of the Interviews. “How to create a stack in which at any point of time you can tell the maxium or minimum number added to the stack. Given the condition all the basic operations of stack like push(), pop() and top() should be done in O(1).” The problem here
Read More…
While playing with Adobe CQ , I faced one issue yesterday . I was trying to create some feature tags . I realized that , I can use the power of CQ that provides us the flexibility to create tag titles in different languages . Pretty well . But , what if I want to
Read More…
Hi all , For a recent project , I had to use some search server , that will index my existing database and give me results depending on my queries . I heard a lot about Apache Solr . Now , it was the time to leverage its power . Without wasting time ,
Read More…
I have faced certain latest frameworks that need Maven 3 to be there in your system in order to build them. Most of the times when you install Maven in your system , from command line, you install them by typing sudo apt-get install maven2 . This installs Maven 2 in your system . But,
Read More…
After appearing for the interviews of many top notch companies and startups who are adopting CQ5 as their weapon in dealing with clients , we have jotted down most of them that we could remember . Please add your questions and scenarios that you have faced during CQ5 interviews in the comment section . 1)
Read More…
We are given a binary search tree; we need to find out its border. So, if the binary tree is 10 / 50 150 / / 25 75 200 20 / / / 15 35 120 155 250 It should print out 50 25 15 35 120 155 250 20 150 10. If the binary
Read More…
Lets get into some real basics. During the start of the interview , the interviewer generally starts with the all time basics of servlets to give a warm up time to the interviewee . “What exactly a Servlet is ?? “ If you are really straight forward , you will answer like “Servlets are Java
Read More…