Asked about Working out whether you need this
How do you decide how much algorithm preparation to do?
An answer that works
From the target list. Check what the specific companies run, through candidate reports or by asking the recruiter directly. Forty hours is either essential or wasted depending entirely on that answer.
Reading an answer is not being able to give one. The section that teaches this is Working out whether you need this, 2 hours of Data structures & algorithms.
Learn this properlyAlso asked about Data structures & algorithms
Do AI engineering roles still ask algorithm questions?When do you reach for a hash map?How do you recognise a sliding window problem?What is binary search on the answer?What is a monotonic stack for?When would you use BFS rather than DFS?How do you find the top k elements efficiently?What does topological sort solve?
All 13 questions on Data structures & algorithms