BlackRock–styleOtherSpring WeekQuestion #70
Write a program to determine if the current configuration of a Tic Tac Toe board allows the 'X' player to win on their next move. A winning configuration is one where three 'X's appear in a row. Your task is to find if there is a row, column, or diagonal with exactly two 'X's and an empty spot, indicating that 'X' can win by playing in that spot. The program should output the coordinate (x, y) of the winning location.
Build Your Approach
State the assumptions, try a simple case, then work toward a general solution. Check the result and explain how it changes if an assumption changes.
Try the free diagnostic with worked solutions →Get Free Interview Prep Resources
More BlackRock–Style Other Questions
What is the Black-Scholes option pricing model?Design a cache system that stores key-value pairs with a fixed capacity. When the cache reaches its limit, it should evict the least recently used (LRU) entry. Implement methods to get a value by key, set a new key-value pair, and delete a specific key from the cache using a data structure of your choice.Explain valuation techniques for pricing mortgage and corporate bonds.What is the square of 72?
Practice the Reasoning Behind the Answer
Bring your target roles and interview timeline to a free quant consult. Discuss your preparation priorities and how Quant Blueprint’s lessons, practice and mock interviews can help.
Book a Free Quant ConsultYour goals · your preparation · your next steps