45 practice questions for Microsoft Mobile Engineer interviews
Microsoft mobile engineer interviews focus on iOS or Android platform knowledge, memory management, offline-first architecture, and mobile-specific system design.
Category: Interval-based system design problem# Top 5 Recently Asked System Design Questions - Microsoft These are the commonly asked system design questions from Microsoft interviews and some...Input: List Output: Computed result
system designSeniorapi design#1
1. [OA] Design a Background Task Scheduler for Microsoft To-Do
To help users manage their tasks in Microsoft To-Do, you need to design a background task scheduler that handles task reminders efficiently, even when the app is not active. Implement a class that schedules tasks to send notifications based on user-configured times.Class Signature: python class TaskScheduler: def __init__(self): def schedule_task(self, task: Task, time: str) -> None: def execute_tasks(self) -> None: Example 1: Input: task_scheduler = TaskScheduler(), task_scheduler.schedule_task(task, '2023-12-01T10:00:00') Output: None Explanation: The task will be scheduled to remind the user at the specified time.Example 2: Input: task_scheduler.execute_tasks() Output: ['Task Reminder'] Explanation: Notifies the user about scheduled tasks due to be reminded.Constraints: - 1 <= tasks.count <= 100 - 1 <= task.title.length <= 100
system designSeniorapi design#2
2. [OA] Design an Offline-first Sync Engine for Microsoft OneNote
As OneNote is often used in offline scenarios, designing a sync engine that efficiently reconciles data between local storage and the server is crucial. Design a class that can sync notes created offline with a remote database when a user's internet connection is restored.Class Signature: python class SyncEngine: def __init__(self, local_db: Database, remote_db: Database): def create_note(self, note: Note) -> None: def sync(self) -> None: Example 1: Input: sync_engine = SyncEngine(local_db, remote_db), sync_engine.create_note(note) Output: None Explanation: A note is created offline, awaiting sync.Example 2: Input: sync_engine.sync() Output: True Explanation: All offline notes are successfully synced to the remote database.Constraints: - 1 <= notes.count <= 1000 - 1 <= note.content.length <= 10^4