C++ Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

6 C++ interview questions from Google, Adobe, Microsoft. All difficulty levels, all roles. Upvoted by engineers who were asked them.

6 questions
Companies: Google, Adobe, Microsoft
344 upvotes

C++ Questions by Company

Google (2)

Google Medium Technical round JavaC++Python

Given a binary tree, return the boundary of the tree in anti-clockwise direction starting from the root. The boundary consists of the left boundary, leaves, and the right boundary in reverse.

↑ 96 upvotes · 31 engineers asked this · SDE2
Google Medium Technical round JavaPythonC++

Given a list of intervals, merge all overlapping intervals and return the result. Explain the sort-then-scan approach and the edge cases (touching intervals, single interval, all disjoint).

↑ 67 upvotes · 43 engineers asked this · SDE1

Adobe (3)

Adobe Medium Technical round JavaC++

Explain the difference between raster and vector image formats. How does Adobe Photoshop store a PSD file differently from Illustrator's AI format? Discuss lossy vs lossless compression and when you would choose PNG vs JPEG vs WebP.

↑ 52 upvotes · 19 engineers asked this · SDE1
Adobe Hard Technical round C++JavaScript

Explain how font rendering works at the operating system level. How does Adobe handle vector-to-raster conversion (hinting, anti-aliasing) for different DPI screens? Why do fonts look different on Windows vs macOS?

↑ 38 upvotes · 22 engineers asked this · SDE2
Adobe Medium Technical round C++PythonJava

Implement a basic version of Adobe Lightroom's non-destructive editing model. All edits (brightness, contrast, crop) are stored as a list of operations, not applied to the original image. Explain the data structure and how you apply/undo operations.

↑ 49 upvotes · 30 engineers asked this · SDE1

Microsoft (1)

Microsoft Medium Technical round 2-5 yearsJavaC++

Design a data structure that supports insert, delete, and getRandom in O(1) average time. Walk through your approach.

↑ 42 upvotes · 33 engineers asked this · Senior SDE

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

Frequently asked questions

Given a binary tree, return the boundary of the tree in anti-clockwise direction starting from the root. The boundary consists of the left boundary, leaves, and the right boundary in reverse.
Given a binary tree, return the boundary of the tree in anti-clockwise direction starting from the root. The boundary consists of the left boundary, leaves, and the right boundary in reverse.
Explain the difference between raster and vector image formats. How does Adobe Photoshop store a PSD file differently from Illustrator's AI format?
Explain the difference between raster and vector image formats. How does Adobe Photoshop store a PSD file differently from Illustrator's AI format? Discuss lossy vs lossless compression and when you would choose PNG vs JPEG vs WebP.
Given a list of intervals, merge all overlapping intervals and return the result.
Given a list of intervals, merge all overlapping intervals and return the result. Explain the sort-then-scan approach and the edge cases (touching intervals, single interval, all disjoint).
Explain how font rendering works at the operating system level. How does Adobe handle vector-to-raster conversion (hinting, anti-aliasing) for different DPI screens? Why do fonts look different on Windows vs macOS?
Explain how font rendering works at the operating system level. How does Adobe handle vector-to-raster conversion (hinting, anti-aliasing) for different DPI screens? Why do fonts look different on Windows vs macOS?
Implement a basic version of Adobe Lightroom's non-destructive editing model. All edits (brightness, contrast, crop) are stored as a list of operations, not applied to the original image. Explain the data structure and how you apply/undo operations.
Implement a basic version of Adobe Lightroom's non-destructive editing model. All edits (brightness, contrast, crop) are stored as a list of operations, not applied to the original image. Explain the data structure and how you apply/undo operations.