Snowflake Software Engineer Interview Questions
Practice the exact questions companies are asking right now.
Validate an extended tic-tac-toe state
Problem You are given a 3×3 tic-tac-toe board state as an array of 3 strings, each of length 3. Each cell is one of: - 'X' (player X) - 'O' (player O)...
Design an object store with deduplication
System Design Prompt Design a simplified cloud object storage service (similar to an object store) that allows users to upload and download files. The...
Implement course scheduling and rate limiter analysis
You are given two independent coding problems. --- Problem 1: Course Scheduling You are planning to take a set of courses and are given prerequisite r...
Design transactional in-memory key-value store
Problem Design and implement an in-memory key–value store that supports basic operations plus transactions. Core API Implement the following operation...
Serialize and deserialize a dictionary trie
Design and implement serialization and deserialization for a trie that stores a large dictionary of words. Requirements: compact wire format; explicit...
Design resilient auth with flaky third-party
System Design: Robust Token Acquisition and API Consumption Context You operate a main API that requires clients to present an access token issued by ...
Set second tree values by subtree sums
Given the roots of two complete binary trees T1 and T2 that have identical structure and the same number of nodes, replace each value in T2 with the s...
Transform tree using counterpart subtree sums
Given the roots of two complete binary trees with identical structure, modify the node values of the second tree so that each node equals the sum of a...
Compute shortest path between tree nodes
You are given the root of a binary tree with unique integer values and two target values u and v. Return the sequence of node values along the shortes...
Check balanced parentheses with multiple bracket types
Given a string containing only parentheses '()', determine whether it is balanced. Follow-up: extend the solution to also support '[]' and '{}' with c...
Design cache for DAG-based query views
System Design: Caching Strategy for a DAG of Materialized Views Context You are designing an analytics system that computes materialized query views. ...
Describe challenging project and cross-functional collaboration
Behavioral Prompt: Your Most Challenging Project Context: Software Engineer onsite interview (Behavioral & Leadership). Describe One Project Covering ...
Design error detection and propagation algorithms
You are given three related sub-problems about error detection and propagation. A) Log search: You have a chronologically ordered array of log lines. ...
Find longest unique-character substring
Given a string s, return the length of the longest substring without repeating characters. Explain and implement an O(n) sliding-window solution using...
Compute shortest path between two tree nodes
Given a binary tree (not necessarily a BST) and two node values u and v, implement a function that returns the shortest path between them as a list of...
Discuss challenges and cross-functional collaboration
Behavioral: Your Most Challenging Project (Software Engineer Onsite) Provide a concise, structured story about a challenging project. Use a STAR-L flo...
Serialize and deserialize a dictionary trie
Design data structures and algorithms to serialize and deserialize a dictionary trie storing lowercase English words. Specify a compact wire format th...
Implement crawler and bracket validator
Implement two tasks: ( 1) Write a function crawl(start_urls, fetch, max_depth, domain_filter) that visits pages starting from the given seed URLs usin...
Design under vague distributed requirements
System Design Prompt: Distributed Metadata Catalog and Schema Registry Context Design a multi-tenant distributed Metadata Catalog and Schema Registry ...
Filter hierarchical paths after deletions
Given two arrays: ( 1) paths — slash-delimited hierarchical strings such as "California", "California/San Francisco", "California/San Francisco/7th St...