You are working on a backend system that retrieves data from a database. The database has two tables: users and posts. Each user can have many posts, and each post belongs to a user. You are notified that the system is experiencing a performance drop in production, and you isolate the issue to the following snippet: async function getUsersWithPostCountAndEarliestPostDate() { const users = await db.query('SELECT u.id AS user_id, u.name AS user_name FROM users'); for (let user of users) { const posts = await db.query('SELECT * FROM posts WHERE user_id = ?', [user.id]); user.post_count = posts.length; user.earliest_post_date = posts.reduce((earliest, post) => post.created_at < earliest ? post.created_at : earliest, Infinity); if (user.earliest_post_date === Infinity) { user.earliest_post_date = null; } } return users; } What type of problem does this code have? How do we fix it?
Ai Developer Technology Engineer Interview Questions
6,087 ai developer technology engineer interview questions shared by candidates
Use AI as a copilot to resolve a bug
Dependency Injections and its working?
1. Machine Learning questions and previous experiences and projects. 2. Coding questions and Machine Learning questions and system design. 3. Behavior question.
Q1. Talk about project experiences Q2. How to implement offline models in real-time? Q3. GAN-related problem (WGAN, gradient vanishing) Q4. Audio dsp problem in ML(preprocessing, data augmentation, why?) Q5. Why is waveform hard to learn? Q6. RNN, LSTM, GRU problems Q7. Do you know any famous ASR models? Talk about it. and three leetcodes problem + ML system design
Tell me about what you did in your last job, provide as much information as possible
Why are you interested in this opportunity?
Describe a Machine Learning model of your choice
Tell me about yourself Are u interested in non technical role
Tell me about your self
Viewing 1241 - 1250 interview questions