FastPrepCount Numbers with an Even Digit Count
Problems/Count Numbers with an Even Digit Count

Count Numbers with an Even Digit Count

ZipRecruiter logoZipRecruiter● EasyNEW GRADOA

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: A ZipRecruiter new-grad OA report describes a positive-integer array, the condition of an even number of decimal digits, the count as the result, and the example [12,134,111,1111,10] giving 3. It leaves out limits, a function signature, and image data, so our version supplies those details.

Given an array of positive integers numbers, count how many values have an even number of decimal digits.

Return that count.

Function

countEvenDigitNumbers(numbers: int[]) → int

Examples

Example 1

numbers = [12, 134, 111, 1111, 10]return = 3

The values 12, 1111, and 10 have two, four, and two digits, respectively.

Example 2

numbers = [1, 10, 999, 1000, 10000]return = 2

Only 10 and 1000 have an even number of digits.

Constraints

  • 1 <= numbers.length <= 1000
  • 1 <= numbers[i] <= 10^4

More ZipRecruiter Online Assessment questions

  • Four-Level Banking System with Scheduled PaymentsOA · Seen Oct 2026
  • Count Three-Digit Numbers with Distinct DigitsOA · Seen Oct 2024
  • Longest Frequency-Bounded SubarrayOA · Seen Oct 2024
  • Minimum Changes to Draw a YOA · Seen Oct 2024
  • Apply Binary State OperationsOA · Seen Sep 2024
  • Simulate Orchard Rot SpreadOA · Seen Sep 2024
  • Compare Odd- and Even-Index SumsOA · Seen Sep 2024
  • Coordinate Removals with Column GravityOA · Seen Sep 2024
  • Lexicographically Smallest End ReversalOA · Seen Sep 2024
  • Recursively Expanded Shell Command CountsOA · Seen Sep 2024

Similar questions at other companies

  • Total Cost Against the Lowest Earlier PricePayPal · OAPayPal interview questions
  • Count Valid Square PairsAuxoAI · OA
  • Picked Player Who LostSusquehanna International Group (SIG) · OASusquehanna International Group (SIG) interview questions
  • Server InvestmentRippling · OARippling interview questions
  • Basic Item DiscountsPalantir · OAPalantir interview questions
  • Next Pascal Row CoefficientIntuit · OAIntuit interview questions
  • Unique Integers That Sum to ZeroNVIDIA · OANVIDIA interview questions
  • Count Multiples of Three with Two SevensHudson River Trading · OAHudson River Trading interview questions
  • Diagonal Bounce TraversalAutodesk · OAAutodesk interview questions
  • Maximum Student-Teacher DistanceChubb · OAChubb interview questions

ZipRecruiter interview experiences

  • ZipRecruiter SWE OA, Level Not Reported: 23 Experiences
  • ZipRecruiter SWE Intern OA Scores: 4 Experiences
  • ZipRecruiter SWE New Grad OA: 9 Experiences
All ZipRecruiter interview questionsSee ZipRecruiter hiring insights
Saved
class Solution {
    public int countEvenDigitNumbers(int[] numbers) {
        // Write your code here.
    }

}
Checking account…