Snowflake logoSnowflake
Coding·45 minMembers

Recipe as Contiguous Ingredient Subsequence

Members only

Given an ordered ingredient list and a set of recipes (each itself an ordered sub-list of ingredients), decide whether each recipe occurs as a contiguous subsequence of the ingredient list. Follow-ups...

SWE
string
hashing
two-pointer
sliding-window
state-machine
streaming
medium
Frequency
Single report
Last asked
2026-01-17
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...