Tip 1 : Don't get demotivate if you stuck in a problem.
Tip 2 : Practice daily, if not possible then do at least for half or an hour.
Tip 3 : Keep a Project ready from head to toe.
Tip 1 : Be thorough with what you mention in resume and never write false.
Tip 2 : Mention a project and courses you have done.



The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

So the intersection of sets … additional info could be important …
If the lists are sorted (the same way), you could traverse them simultaneously (moving the pointer “to smaller” and copy elements to the result list when smaller is simultaneously in both lists ( Θ(n) solution).
If the lists are not sorted, making a hashmap would be faster than trivial Θ(n2) solution or a solution sorting them first Θ(nlogn) .
So traverse one list and update the hashmap addressed by the keys to contain the number of elements with the given key in the traversed portion of the list.
Then traverse the other list and if the key is not in the hashmap with a count greater than 0, ignore it. In the other case decrement the count and copy the element to the result list. The hashmap can be discarded after the second traversal.
In the case you know there are no duplicate keys in the input lists, you could use a hashset rather the hashmap as you need not border with maintaining counters. … Θ(n) solution (randomized by the hash function choice).
Basic C++ Type questions
the timing was afternoon and the interviewer was very cool guy
the interviewer was cross questioning me again and again but I was able to answer
The interview went very well and he advised me to improve communication skills rest my knowledge is good.
What is a data structure?
What are abstract data types?
Explain the working of HashMap?
A hash table (or hashmap) is essentially a map from one object to another. The most basic example of a hashmap is an Array, since an Array maps integers to data elements.
The elements which are mapped from are termed as keys (in an array, the integer indices act as keys) and the elements that are mapped to are called values (in an array, the data elements are values).
Generally, the keys need to be unique in a hashmap (else on quering a key, the language can’t determine which value to return, for instance mapping the index 0 of an array to 2 different objects).

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?