Quant Interview Question #quant
Skills:
Algorithm Basics80%
Key Takeaways
Solving a quant interview question on graph theory, specifically calculating the expected number of connected components in a graph after two rounds of random edge additions using Python and graph algorithms.
Full Transcript
We have 20 nodes. First, we randomly split them into 10 pairs and add an edge between the two nodes in each pair. Then, independently, we repeat the process. We randomly split the 20 nodes into 10 pairs again and add an edge between the nodes in each pair. Some of these pairs may be the same as before. After both rounds are complete, what is the expected number of connected components in the resulting graph? Post your answers in comments.
Original Description
Can you solve this quant interview question?
More on: Algorithm Basics
View skill →Related Reads
📰
📰
📰
📰
Trapping Rain Water: Understanding Data Structure Choices from a Beginner’s Perspective
Medium · Programming
The Grid Problem That Looks Easy Until You Need the Lexicographically Smallest Path
Medium · Programming
The Algorithm That’s Practically O(1) — But Provably Isn’t
Medium · Programming
Knight Attack Made BFS Feel Like a Recipe, Not a Template
Medium · Python
🎓
Tutor Explanation
DeepCamp AI