Algorithm Design Engineer Interview Questions

983 algorithm design engineer interview questions shared by candidates

1. if you have a video camera on top of a vehilce, and you shoot a car that come right in front of your car, how can you tell the time t that will take the car to crash you? 2.asked me to solve the binary distance transform problem with 1d, and later on as home work - to solve the 2d problem.
avatar

Algorithm Developer

Interviewed at General Motors (GM)

3.5
Oct 30, 2020

1. if you have a video camera on top of a vehilce, and you shoot a car that come right in front of your car, how can you tell the time t that will take the car to crash you? 2.asked me to solve the binary distance transform problem with 1d, and later on as home work - to solve the 2d problem.

1) A pretty number is a number in base 4 whose digits are all either 1 or 0. How many pretty numbers are there < n? 2) Given a list of moves in reversi, return the total number of pieces for each player at the end of the game 3) Trees are given as lists of nodes, where each node is a list with data [key, value, *children), where the order of the children matters. Two trees must be merged (left and right). For a given merged node with the same key between left and right inputs, the merged value should come from the right tree. The list of the merged node's children should start with children from the left tree's child list, and then the leftover right tree's child list. Output (key1,value1,...) in pre-order traversal
avatar

Algorithm Developer Intern

Interviewed at Hudson River Trading

4.1
Apr 28, 2025

1) A pretty number is a number in base 4 whose digits are all either 1 or 0. How many pretty numbers are there < n? 2) Given a list of moves in reversi, return the total number of pieces for each player at the end of the game 3) Trees are given as lists of nodes, where each node is a list with data [key, value, *children), where the order of the children matters. Two trees must be merged (left and right). For a given merged node with the same key between left and right inputs, the merged value should come from the right tree. The list of the merged node's children should start with children from the left tree's child list, and then the leftover right tree's child list. Output (key1,value1,...) in pre-order traversal

Technical Assessment (20 minutes) LeetCode Question: Longest Palindromic Substring Coding live where the interviewer can see your code on a shared editor. Discussion and Questions (40 minutes) Self-Introduction Project Discussion: Explain a project related to LLM LLM Creation: How is a Large Language Model created? Model Architectures: Explain the different models and their architectures (e.g., GPT, LLAMA, Falcon, BLOOM) Positional Embeddings: What is the purpose of positional embeddings? Normalization Techniques: Difference between BatchNorm and LayerNorm Retrieval-Augmented Generation (RAG): - What is RAG? Explain its purpose. - Even if you use RAG, there are hallucinations occurring. Why is this so and what can you do to mitigate? - What other current academic advancements in RAG? Explain about some frameworks that are trending. Scenario Question: If we have large-scale data (billions of records) from the web, how can I efficiently select math-related data? Discuss using distributed computing frameworks if possible.
avatar

Algorithm Engineer, Large Language Model

Interviewed at Shopee

3.7
Nov 5, 2024

Technical Assessment (20 minutes) LeetCode Question: Longest Palindromic Substring Coding live where the interviewer can see your code on a shared editor. Discussion and Questions (40 minutes) Self-Introduction Project Discussion: Explain a project related to LLM LLM Creation: How is a Large Language Model created? Model Architectures: Explain the different models and their architectures (e.g., GPT, LLAMA, Falcon, BLOOM) Positional Embeddings: What is the purpose of positional embeddings? Normalization Techniques: Difference between BatchNorm and LayerNorm Retrieval-Augmented Generation (RAG): - What is RAG? Explain its purpose. - Even if you use RAG, there are hallucinations occurring. Why is this so and what can you do to mitigate? - What other current academic advancements in RAG? Explain about some frameworks that are trending. Scenario Question: If we have large-scale data (billions of records) from the web, how can I efficiently select math-related data? Discuss using distributed computing frameworks if possible.

Viewing 791 - 800 interview questions

Glassdoor has 983 interview questions and reports from Algorithm design engineer interviews. Prepare for your interview. Get hired. Love your job.