InterviewDB
Question
Unequal Elements: Find the Longest Subarray Where No Two Adjacent Elements Are Equal
Question Details
Problem Given an integer array, find the length of the longest contiguous subarray where no two adjacent elements are equal. Example: Approach Single pass: maintain curr_len. When nums[i] != nums[i-1], increment curr_len; otherwise reset to 1 (curren…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Oa
More from Snowflake
Reddit
Snowflake screening interviews coming up — system design + coding questions?
1p3a
Snowflake 2026 Software Engineer Intern VO Interview Experience
1p3a
Snowflake SWE AI/ML Intern Online Assessment Problems
Reddit
Tips Systems Role Snowflake
Reddit
Posting Again: Did I mess this up or do I still have a shot? (Data Analyst Interview Experience)