FastPrepIs the Number a Palindrome?
Problems/Is the Number a Palindrome?

Is the Number a Palindrome?

Adobe logoAdobe● EasyFULLTIMEPHONE SCREEN

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: You check whether an integer reads the same forwards and backwards. A report from an Adobe senior Android engineer in Bengaluru (June 2024) lists this as the opening question of the first round. It was solved in under a quarter of an hour. The other two questions were open-ended scenarios the candidate found hard to classify. The report gives no rule for negative numbers, no range and no examples.

We chose these rules. Negative numbers are not palindromes. x is any 32-bit signed integer. We wrote new examples. The editorial also shows the version that does not turn the number into a string.

Our version is about 90% the same as the reported question.

Given an integer x, return true if its decimal digits read the same from left to right and from right to left, and false otherwise.

A negative number is never a palindrome, because its minus sign has no match at the other end.

Function

isPalindromeNumber(x: int) → boolean

Examples

Example 1

x = 4554return = true

Read backwards, the digits 4, 5, 5, 4 give 4554 again.

Example 2

x = -33return = false

Written out, the number is -33; backwards it would be 33-, which is not the same, so negative numbers are never palindromes here.

Example 3

x = 120return = false

Backwards the digits are 0, 2, 1, which is 021, not 120.

Constraints

  • -2^31 <= x <= 2^31 - 1

More Adobe Phone Screen questions

  • Evaluate a Parenthesized Integer ExpressionPHONE SCREEN · Seen Oct 2026
  • All Elements of Two BSTs in OrderPHONE SCREEN · Seen Aug 2026
  • Rotate an Array In PlaceOA · PHONE SCREEN · Seen Aug 2026
  • Binary Tree Level-Order Traversal by LevelsPHONE SCREEN · ONSITE INTERVIEW · Seen Aug 2026
  • Count Occurrences in a Sorted ArrayPHONE SCREEN · ONSITE INTERVIEW · Seen Jul 2026
  • Count Pairs with Absolute Difference KPHONE SCREEN · Seen Jul 2026
  • Count Subsets with Sum KPHONE SCREEN · Seen Jul 2026
  • Numbers with Exactly Three DivisorsPHONE SCREEN · Seen Jul 2026
  • Sum of Even Nodes on a Path in a Numbered Binary TreePHONE SCREEN · Seen Jul 2026
  • Largest Value in Every Sliding WindowPHONE SCREEN · Seen Jul 2026

Similar questions at other companies

  • Automation Pipeline, Part 1: Single WorkerPlaid · PHONE SCREENPlaid interview questions
  • Subtract Two Large Number StringsStackAdapt · PHONE SCREENStackAdapt interview questions
  • Circular Primes Below a LimitAmazon · PHONE SCREEN
  • Palindrome NumberKotak Mahindra Bank · PHONE SCREENKotak Mahindra Bank interview questions
  • Streaming AverageXantium · PHONE SCREEN
  • Fair Coin from a Biased CoinAnthropic · PHONE SCREENAnthropic interview questions
  • Stack Formula InterpreterTypeSafe AI · PHONE SCREEN
  • Employee Count Median, Mean and ModeClay · PHONE SCREEN
  • Newton Square Root to a Guaranteed ToleranceSquarepoint Capital · PHONE SCREENSquarepoint Capital interview questions
  • Biased Coin: Probability of Exactly h HeadsAkuna Capital · PHONE SCREENAkuna Capital interview questions

Interview reports that mention this question

  • Adobe SDE and Senior SWE Interviews: 9 Experiences (Part 3 of 6)
  • Adobe Experienced Hire Interviews: 55 Experiences (Part 1 of 6)

Adobe interview experiences

  • Adobe Web, QA, DevOps, ML Roles: 13 Experiences (Part 3 of 3)
  • Adobe SWE Interviews, Level Unknown: 25 Experiences (Part 2 of 3)
  • Adobe Interviews, Level Unknown: 38 Experiences (Part 1 of 3)
  • Adobe New Grad MTS Interview Questions: 7 Experiences
All Adobe interview questionsSee Adobe hiring insights
Saved
class Solution {
    public boolean isPalindromeNumber(int x) {
        // Write your code here.
    }
}
Checking account…