Technical Interview - They were basically looking for code optimiztion in terms of space and time complexity
1. WAP to find depth of a binary tree(not binary search tree).
2. WAP to reverse a linked list.
3. WAP to reverse a linked list with a loop.
I wasn't able to develop the logic for the third question and latter I was told that this conversion was not possible.
Then I was asked to write a code to check if reversing was possible
if possible then reverse it otherwise throw an exception.
The second interviewr asked me some basic HR questions related to my projects and java
Diff between final finally and finalize
Diff between abstract class and interface
The I was asked to write a program(and latter code it), to find the find the word which had the max frequency in the given sentence.
Basically they were looking forward to how you approach the problem, so they encouraged to come up with the various approaches and finally implement the best approach