Question bank › Math
Dsa Math Medium

Hexadecimal Palindrome Product

A hexadecimal palindrome is a number that reads the same backward as forward in hexadecimal representation. Given an integer N, find the product of all integers from 1 to N that are hexadecimal palindromes. Write a program that reads N and prints the resulting product modulo 10^9 + 7. If no hexadecimal palindromes exist in that range, return 1. Input Format: - A single integer N (1 <= N <= 10000). Output Format: - A single integer: the product of all hexadecimal palindromes from 1 to N. Example: Input: 16 Output: 1

Key concepts

mathpalindromehexadecimal

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.