Why Companies Ask DSAs in Tech Interviews?
DSA problems are a great indicator of how an engineer will be handling real world problems. Interviewers can use this small interview to know that:
1. If the student is identify the problem that is happening in the product.
2. Ask the right questions to clearly understand the real world problem. (Clarifying questions of DSAs are equivalent to user experience questions)
3. If the student is able to come up with a solution (brute force). Basically he is checking if he will be at least able to resolve the user problem.
4. If he will be to come up with multiple algorithms/thought processes to solve this problem at hand. Will he able to choose the right tools (data structures) for this thought process. Does he know the user experience costs (Time Complexity and Space Complexity) related to these solutions.
The order of above matters.
Anyone who says DSAs interviews are not a representative of a candidate's ability as Software engineer then
Either
He is just doing it for making a candidate feel like a victim and is click bating the students
or
He is not able to understand that big real world computer science problems can be solved with same problem solving approach as small DSA problems.