InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-12

Write a program to reverse a given integer.

AI-Expanded — inferred from the question title, not from the original candidate report

Given a signed 32-bit integer, write a function that returns the integer with its digits reversed. If reversing the integer causes the value to go outside the signed 32-bit integer range of [-2^31, 2^31 - 1], the function should return 0.

Context & Summary

The round focused on data structures, algorithms, core technical concepts, and system design fundamentals.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.