sb
BAN USER- 0of 0 votes
Answersfind degree of connection of two users in social networking site, like linkedin shows us upto 3rd level degree of distance.
- sb in India
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| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm - 1of 1 vote
Answersfind degree of connection of two users in social networking site, like linkedin shows us upto 3rd level degree of distance.
- sb in India
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| Report Duplicate | Flag | PURGE
Software Engineer / Developer Algorithm
from state of chess board you can know color of the player who's move it is.
question gets tricky, how you are going to find that your king is under attack.
from state of board you can find out the position of the king, then how you are going to iterate over the board to find whether its check
if yes, then find whether you can kill the opponent piece, how??
if no ,then in optimized way find the blocks where you want to move your king.
then componentization of the chess and moves of each player......
well we can say that check board object has reference to player who's move it is or you can say that it is provided as separate input parameter.
- sb September 10, 2012