</>OfferRetriever
DashboardDiscuss
NEW
Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Snowflake Questions

Color Chain Winner

Medium
FREE

You are implementing a color chain game. Two players take turns placing tokens on a grid. Each cell contains "red", "blue", or "" (empty). A player wins when they form a chain of 4 or more consecutive tokens of their color in a row, column, or diagonal.

Given the current board state (before the move), the position [row, col] where the current player places their token, and the player's color, place the token and check if the placement creates a chain of 4 or more. Return the winning player's color if they win, or "" if no win occurs. ...

Asked at:Snowflake

More Snowflake interview questions

All Snowflake interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.