I understand the resistance to flash cards as rote memorization without being able to build upon them, I think that's a cogent criticism. At the same time I think some people will be able to take advantage of this to build their toolbox.
And as a minor note, I personally love when people can name an algorithm or concept. There was one interview that I think I completely failed, but I was able to name (but not write out) a concept. I actually incorrectly name dropped Hamming distance, when it was actually the Levenshtein distance, but I was able to diagram the concept behind it. I passed that interview (to my tremendous surprise), and I think the name drop and the simple diagram helped.
I literally had someone write down the exact answer for an algorithm question that appears on GeeksforGeeks down to the small bugs which the post had originally.
how did you know/verify this?
wondering why an interviewer would go GeeksforGeeks and other interview sites and match a candidates answer line by line.
ok if you find that your question is very common leetcode problem. What do you do with that information?
Looks like GP decided to use that common question anyways in the interview.
Write some sort of automated plagiarism test that checks against all common sites and answers ( leetcode can have 100's of user posted solution) ?
"Memorizing" these algorithms isn't the approach I'd use at all. No interview of mine will ever be of the form "implement such-and-such well-known algorithm".
However, my questions do begin with "imagine we're on the x team and we have y technical problem - what should we do?", and it's helpful to have a toolchest of coding techniques that includes hash tables, trees, etc.
I see. I don't do that very much.
> As for trees, your code is a tree. Every time you're working with a nested data structure, you're working with a tree. Trees are fundamental to programming and data representation in a way hardly anything else is.
I haven't really needed to write a program to traverse my code as a tree, but I guess you're right that I must have used trees in C at some point.