preparing for coding interview

hello,I have been practicing leetcode for a long time.
during a coding interview,when faced with problems that are similar to the ones I practiced,I am able to fly through the coding test.But when the problem is twisted and turned,I am literally at my wit's end.What is more surprising is that when the test/interview is finished,I am able to recollect the problem and its solution.
for eg:just faced a graph question.it was a long wordy explanation,but after sometime ,I was able to figure the direction (maximal connected components in graph)
so what shall I do to overcome this obstacle.currently,I am thinking of changing my approach,rather than practicing the same 10-20 problems related to DSA,I am thinking of focusing on say just 3-5 hard problems in each DSA topic.My only fear is what happens if something new comes which is not along the lines that I practiced.

Comments (0)
No comments yet.