Write a function to get the intersection point of two Linked Lists.

There are two singly linked lists in a system. By some programming error the end node of one of the linked list got linked into the second list, forming a inverted Y shaped list. Write a program to get the point where two linked list merge.


The node of intersection is 15

Find out if an anagram of a string is subString of another String

Today we find the if an string given (anagram) is a sub-String of another string or not.

Anagram of ozma is substring of amazon

Simple Calculator using switch statement

Today we are programming a simple calculator program which can perform addition, subtraction, multiplication and division. This question was asked by my friend in microsoft interview. Looks simple but very important.

Below is the program.

Enter the numeric value: 8
Enter the numeric value: 4
Choose from + , – , * , /: +
The numbers are : 8 and 4 option choose is +
The result is 12.0