HOME

Adobe India Hackathon - Mock Test 10

Select your answers. Once selected, they will be locked.

Section 1: MCQs

Section 2: DSA Problem

First Non-Repeating Character

Given a string, return the index of the first non-repeating character. If there is none, return -1.

Input: "leetcode"
Output: 0

Input: "aabb"
Output: -1

Write your solution below: