I recently appeared for an online assessment test focused on Data Structures and Algorithms (DSA) hosted on the HackerRank platform.
The test had a total duration of 110 minutes, during which I was required to solve two challenging DSA problems.
Each question was designed to assess my problem-solving skills, understanding of core DSA concepts, and ability to implement efficient algorithms under time constraints. The problems required careful analysis, code optimization, and rigorous testing.
1st Problem
Problem Statement
You are given an array sequenceData of n positive integers. You may perform the following operation any number of times (including zero):
s (1 ≤ s ≤ n) that contains no zeros.After performing operations in any order, determine the maximum number of zeros that can appear in the array.
2nd Problem
You are given two strings:
sourceString: the original string in which you need to search.pattern: a simplified regex-like pattern that contains exactly one asterisk ''. The '' can match any (possibly empty) substring of sourceString.Your task is to find the length of the longest possible substring in sourceString that:
pattern,pattern,If no such match exists, return -1.
The following metrics were computed from 109 interview experiences for the Amazon Software Development Engineer (SDE) role in Bengaluru, Karnataka.
Amazon's interview process for their Software Development Engineer (SDE) roles in Bengaluru, Karnataka is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Amazon's Software Development Engineer (SDE) interview process in Bengaluru, Karnataka.