PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Coding & Algorithms/Microsoft

Solve Three Coding Interview Problems

Last updated: Apr 2, 2026

Quick Overview

This set of problems evaluates competency in algorithmic problem-solving, including merging sorted arrays with duplicate elimination, reasoning about the extremum of a quadratic function within integer bounds, and the design and implementation of prefix-based string search, and falls within the Coding & Algorithms category.

  • medium
  • Microsoft
  • Coding & Algorithms
  • Software Engineer

Solve Three Coding Interview Problems

Company: Microsoft

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

The coding round contained three independent problems: 1. **Merge two sorted arrays and remove duplicates.** Given two sorted integer arrays `a` and `b`, return one sorted array that contains each distinct value appearing in either array exactly once. 2. **Find the vertex of a quadratic function within a range.** You can evaluate a quadratic function `f(x)` on integer inputs, and you are given an integer range `[L, R]` that is guaranteed to contain the vertex of the parabola. Find the integer `x` where the function reaches its extremum within that range. 3. **Design and implement a simplified search autocomplete system.** Build a data structure initialized with a collection of strings. It should support inserting a new string and querying a prefix to return all stored strings that begin with that prefix. Unlike a production autocomplete system, you do not need frequency-based ranking or top-`k` truncation.

Quick Answer: This set of problems evaluates competency in algorithmic problem-solving, including merging sorted arrays with duplicate elimination, reasoning about the extremum of a quadratic function within integer bounds, and the design and implementation of prefix-based string search, and falls within the Coding & Algorithms category.

Related Interview Questions

  • Return Top K Open Businesses - Microsoft (hard)
  • Implement Memory Allocation and In-Memory Records - Microsoft (medium)
  • Implement K-Means and Detect Divisible Subarrays - Microsoft (medium)
  • Sort Three Categories In Place - Microsoft (medium)
  • Retain Top K Elements - Microsoft (medium)
Microsoft logo
Microsoft
Feb 7, 2026, 12:00 AM
Software Engineer
Technical Screen
Coding & Algorithms
0
0
Loading...

The coding round contained three independent problems:

  1. Merge two sorted arrays and remove duplicates. Given two sorted integer arrays a and b , return one sorted array that contains each distinct value appearing in either array exactly once.
  2. Find the vertex of a quadratic function within a range. You can evaluate a quadratic function f(x) on integer inputs, and you are given an integer range [L, R] that is guaranteed to contain the vertex of the parabola. Find the integer x where the function reaches its extremum within that range.
  3. Design and implement a simplified search autocomplete system. Build a data structure initialized with a collection of strings. It should support inserting a new string and querying a prefix to return all stored strings that begin with that prefix. Unlike a production autocomplete system, you do not need frequency-based ranking or top- k truncation.

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Microsoft•More Software Engineer•Microsoft Software Engineer•Microsoft Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.