Question d’entretien chez LinkedIn

Design a hang man online application

Réponses aux questions d'entretien

Utilisateur anonyme

16 juin 2011

1. Grouping of words by different categories like fruits, auto parts etc. 2. Grouping of words based on difficulty 3. Each word is associated with length of it's characters. dup chars are counted as one and this could be optional like property or a param to consider while determining difficulty level. 4. TBD: Establish rule on how many guesses has to be given to each difficulty level. 3. User chooses right group or intersection of the group. 4. Show user empty positions or some symbol representing total characters in the word. 5. Users get N chances based on difficulty level to guess word right. 6. User have to start guessing from beginning of the word. Logic checks from the beginning. 7. User may get a word bigger than number of guesses lenthwise. In this case program is giving hint that some characters may repeat. 8. Accept input from user as one char 9. Show user right gusses by replacing symbols with his character choice. 10. If guess is not right then he looses one guess from N 11. Repeat steps from 8 until user's selection matches the word OR he/she runs out of guesses.

1

Utilisateur anonyme

7 juin 2011

Explained the design and events between the client and server.