Easy · Streams & I/O
Check palindrome in stream
Given a stream of ASCII characters delivered one at a time through letter(c), return whether the complete stream reads the same forwards and backwards, comparing characters exactly.
Examples
Example 1
{
"chars": "abccba"
}Output: true
Example 2
{
"chars": "abc"
}Output: false
Rebuild it in the studio
Open every published interview problem, solution, scene, and memory room free, with no account.