HOME

Adobe India Hackathon - Mock Test 9

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

Section 1: MCQs

Section 2: DSA Problem

Array Rotation Validator

Given two arrays A and B of the same length, write a function that returns true if B is a rotation of A.

Example:
A = [1, 2, 3, 4, 5]
B = [3, 4, 5, 1, 2]
Output: true