Reddit logoReddit
CodingMembers

Shortest Palindrome

Members only

A classic string problem asked in a Reddit ML Infra onsite coding round. The brute-force approach is easy to reach but too slow at the stated input size, so the round rewards knowing the linear-time idea.

MLE
SWE
string
palindromes
two-pointer
hard
Frequency
Single report
Last asked
2026-03-13
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...