New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Bloomberg
Coding Question
AI Insights
Quick Summary
Design a stateful structure to append characters to a stream and query if the cumulative sequence is a palindrome.
Both operations must achieve sub-linear amortized time complexity to scale with very large inputs.
Relies on incremental mathematical updates rather than brute-force string reconstruction or scanning.
What This Tests
Rolling hash techniques and numerical string fingerprinting
Incremental state maintenance and amortized time analysis
Probabilistic verification and collision management strategies
Efficient algorithmic design for continuous data streams
Common Patterns
Hashing
Prefix Sum
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected