...where the following advice is given: "But your strategy while answering this question should not be directly this answer. Generally in the interview you should start with the worst answer and then improve upon it.
If you directly give this answer then the interviewer would know that you had done this question before and may not give credit to you for the answer."
Hmm....
Sound advice, but there's something morally off, IMO.
Do you hate the player or the game, I wonder?
Or the online site that helps the player play the game?
In my opinion answering like that gives interviewer idea that u have thorough knowledge and know all the solutions in the incremental level of improvement (complexity and space usage etc).
...where the following advice is given: "But your strategy while answering this question should not be directly this answer. Generally in the interview you should start with the worst answer and then improve upon it.
If you directly give this answer then the interviewer would know that you had done this question before and may not give credit to you for the answer."
Hmm....
Sound advice, but there's something morally off, IMO.
Do you hate the player or the game, I wonder? Or the online site that helps the player play the game?
As others have commented, interviewing is broken.