Adobe India Hackathon - Mock Test 3

Select your answers. Once selected, you cannot change them.

Section 1: MCQs

Section 2: DSA Problem

Find All Anagrams in a String

You are given two strings s and p. Return all the start indices of p's anagrams in s.

Example:
Input: s = "cbaebabacd", p = "abc"
Output: [0, 6]

Write your solution below: