← Amazon questions

Anagram substring search and trapping rain water

Filed under Amazon

Given two strings Str1 and Str2, determine if any anagram of Str2 is a substring of Str1. The search should be case-insensitive.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.