TGViewer
Coding Interview Preparation Coding Interview Preparation @coding_interview_preparation · 5.9K subscribers
Post #1255 776
💻 Coding Interview Questions

1️⃣ What is a heap?
Answer: A complete binary tree where parent nodes are greater (max-heap) or smaller (min-heap) than children.

2️⃣ Heap vs Priority Queue?
Answer: A heap is a data structure; a priority queue uses a heap to manage priorities.

3️⃣ What is a trie?
Answer: A tree used to store strings for efficient prefix searches.

4️⃣ What is dynamic array?
Answer: An array that resizes automatically when full (e.g., Python list, Java ArrayList).

5️⃣ What is a hash set?
Answer: Stores unique elements with fast lookup, using a hash table internally.

6️⃣ What is a circular queue?
Answer: A queue where the end connects back to the start to reuse empty space.

7️⃣ What is a sentinel node?
Answer: A dummy node used to simplify boundary conditions in linked lists or trees.

8️⃣ What is a graph adjacency list?
Answer: A list storing all neighbors of each vertex for efficient storage.

9️⃣ What is a graph adjacency matrix?
Answer: A 2D array representing edges; cell[i][j]=1 if edge exists.

🔟 What is complexity of inserting into a hash table?
Answer: Average O(1), worst-case O(n) if many collisions occur.
  • ❤ 3
More from @coding_interview_preparation
  1. Oct 10, 2026100 SQL interview questions
  2. Oct 8, 2026If you're prepping for system design interviews, this repo is gold It contains a curated,…
  3. Oct 6, 2026document post
  4. Oct 4, 2026💼 Why Your Resume Gets Rejected Before a Human Reads It You may have good skills and proj…
  5. Oct 2, 2026🧠 Coding Myths You Should Stop Believing There's a lot of advice online about learning to…
  6. Oct 1, 2026Most Asked Topics in AI Engineer Interviews Based on 2026 candidate reports
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →