Interview experience – HashedIn by Deloitte (Campus hiring – Coding round)
The online test had 3 coding questions, all focused on DSA (strings, sliding window, prefix sums). Time: 90 minutes Platform: HirePro Only DSA coding questions, no MCQs.
Difficulty was Medium–Hard.
Good knowledge of strings, sliding window, prefix-sum, hashing is required.
HirePro gives no partial score: code must pass test cases.
Language allowed: Java/Python/C++.
Q1. Search Most Recent Task Containing Keyword
A company keeps a record of tasks added daily. Each task is a string. Given a list of tasks (oldest first) and a keyword, return the most recently added task that contains the keyword as a substring.
If none contain the keyword → return "Not Found".
Search must begin from the last task backward.
Example
Input:
5
Finish report
Email team
Schedule meeting
Review code
Fix bug
Review
Output:
Review code
Q2. Smallest Subarray Containing All Unique Events
You are given a list of event IDs. You must find the shortest contiguous subarray that contains at least one occurrence of every unique event present in the entire list.
If multiple smallest segments exist → choose the one with smallest starting index.
Output should be the pair: [startIndex, endIndex].
Example
Input:
events = [1, 2, 2, 3, 1]
Output:
[2, 4]
Q3. Count Subarrays Whose Sum Is Divisible by K
You are given:
N: number of days
transactions[]: array of integers
K: positive divisor
Count the number of contiguous subarrays where the sum is divisible by K.
Example
Input:
N = 5, K = 3
transactions = [1, 2, 3, 4, 1]
Output:
4
The following metrics were computed from 1 interview experience for the HashedIn Software Engineer role in Ahmedabad, India.
HashedIn's interview process for their Software Engineer roles in Ahmedabad, India is extremely selective, failing the vast majority of engineers.
Candidates reported having mixed feelings for HashedIn's Software Engineer interview process in Ahmedabad, India.