Showing posts with label LinkedIn Interview. Show all posts
Showing posts with label LinkedIn Interview. Show all posts

Saturday, August 11, 2012

find degree of connection of two users in social networking site, like linkedin shows us upto 3rd level degree of distance


find degree of connection of two users in social networking site, like linkedin shows us upto 3rd level degree of distance.so the aim is to find minimum degree of connection between two users.
by degree of connection i mean, say user1 is friend with user2 and user2 is also friend with user3
now user1 and user3 are 1st degree of connection with user2
and user3 is 2nd degree of connection with user1

Wednesday, September 14, 2011

Numbers are randomly generated and passed to a method. Write a program to find and maintain the median value as new values are generated.