Contribute OA questions
OAHelper
CompaniesProblemsTopicsInterview Experiences
Explore
M

Microsoft

SDE

Interview Date

21-08-2026

Result

Selected

Difficulty

Easy

Rounds

01

Drive Type

Off-Campus

Interview Date

21-08-2026

Result

Selected

Difficulty

Easy

Rounds

01

Drive Type

Off-Campus

Topics asked

DSA

Detailed experience

## Question 1: Optimal Log Truncation Concepts:** Sliding Window, Hash Map Problem Statement:** You are managing a server log sequence represented as a string `logs` consisting of characters `'E'` (Error), `'W'` (Warning), and `'I'` (Info). To meet storage compliance, you must delete exactly one contiguous substring of logs such that the remaining log sequence contains at most `max_E` errors and at most `max_W` warnings. Return the minimum length of the substring you need to delete. If the initial string already satisfies the conditions, return `0`. Test Case:** *Input:** `logs = "EWEIWE"`, `max_E = 1`, `max_W = 1` *Output:** `3` - ## Question 2: Even Frequency Data Batches Concepts:** Prefix State Masking, Hash Map Problem Statement:** You are given an array of integers `data_types` where each integer represents a distinct data type (ranging from `1` to `10`). A data batch (a contiguous subarray) is considered "balanced" if every data type present within that batch appears an even number of times. Find and return the length of the longest balanced contiguous subarray. Test Case:** *Input:** `data_types = [1, 2, 1, 2, 3, 3, 1]` *Output:** `6`

Posted on - 23 Sept 2026
Company OAsAll ProblemsTopicsCompany InsightsOA CalendarInterview ExperiencesPremium
OAHelper

Built by students, for students - practice company-specific OAs, DSA sheets, and real interview experiences to land your dream role.

© 2026 OAHelper.in·Terms·Privacy·Refunds·Trust & Safety·Contact·
Ready to crack your next OA?

Practice company-specific questions trusted by thousands of students across India.

Start PracticingGo Premium
OA Practice·DSA·Placements

Disclaimer: OAHelper is an independent educational platform. We (oahelper.in) do not own the images or questions shown. Content is uploaded by users.