💻 Coding Interview Questions
1️⃣ What is an algorithm?
Answer: A step-by-step procedure to solve a problem.
2️⃣ What is Big-O notation?
Answer: It describes the worst-case time or space complexity of an algorithm.
3️⃣ What is a binary search?
Answer: A search algorithm that repeatedly divides a sorted array in half.
4️⃣ Linear search vs Binary search?
Answer: Linear search checks every element; binary search divides the search space (needs sorted data).
5️⃣ What is a function?
Answer: A reusable block of code that performs a specific task.
6️⃣ What is a compiler?
Answer: A program that translates source code into machine code.
7️⃣ What is an interpreter?
Answer: A program that executes code line by line.
8️⃣ What is a runtime error?
Answer: An error that occurs while the program is running.
9️⃣ What is memory leak?
Answer: When a program uses memory but fails to release it.
🔟 What is an exception?
Answer: An error that disrupts normal program execution and can be handled.
Post #1225
826
- 🔥 4