Got completely cooked in Amazon recent OA.
Today's Amazon OA was quite an experience.
The trial test went pretty smoothly. I solved the question in around 7-8 minutes, so I went into the actual OA feeling fairly confident.
Then came a completely different beast.
There was a Hard string problem. My first instinct was to approach it using frequency counting and sliding window. I kept exploring different possibilities, even considered whether DP could be involved, but I just couldn't figure out the right approach within the assessment.
After completing the OA, I revisited the problem and discovered that the intended approach was Binary Search on Answer combined with greedy construction.
Honestly, that stunned me. I've solved over 1,500 LeetCode problems and have decent Codeforces experience, so I'm certainly not new to DSA. Yet I hadn't encountered this particular way of looking at a problem before.
It wasn't a case of struggling to implement a known algorithm. I simply couldn't identify the underlying observation.
Now I'm genuinely curious:
Are OA questions getting this difficult lately, or was I just unlucky with the particular question I received?


