InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-12

Convert a hexadecimal string to a decimal number.

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

Given a string representing a hexadecimal number, implement a function that converts it into its corresponding base-10 integer value. Your solution should correctly handle both uppercase and lowercase letters (A-F) and must not rely on built-in language libraries that perform base conversion automatically.

Context & Summary

1-hour interview with a senior-level engineer focusing on embedded systems, endianness, and programming challenges.

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