SDE 1 | Microsoft | [ Rejected ]

Anonymous User
1014
Nov 29, 2023

Was contacted by the recruiting manager over mail. Interviewed on 27th November 2023.
The interviewer(not the hiring manager), threw the question with little to no help and to some extent could not care less.
The question asked was a variant of:
Given a large text find the minimum possible substring that has a-z characters as it's subsequence.
Leetcode : 727 (Leetcode Premium)
Given strings S and T, find the minimum (contiguous) substring W of S, so that T is a subsequence of W.
If there is no such window in S that covers all characters in T, return the empty string "". If there are multiple such minimum-length windows, return the one with the left-most starting index.

Except in my case, T was "abcdefghijklmnopqrstuvwxyz"

In my opinion, it was a hard question and the interviewer expected a O(N) solution so couldn't solve it.

Verdict : Rejected :)

Comments (8)