PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Coding & Algorithms/Chime

Find missing number from concatenated digits

Last updated: May 11, 2026

Quick Overview

This question evaluates proficiency in string parsing, combinatorial reasoning, frequency analysis, and algorithmic problem solving for reconstructing a missing integer from concatenated or permuted digit sequences.

  • Medium
  • Chime
  • Coding & Algorithms
  • Software Engineer

Find missing number from concatenated digits

Company: Chime

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: Medium

Interview Round: Onsite

Given an integer n (1 ≤ n ≤ 99) and a digit string s formed by concatenating the decimal representations of the integers 1..n except for one missing number k, write a function to return k. Part A: s preserves the natural order (e.g., n=5, s="1234" → k= 5). Part B: s’s characters are arbitrarily permuted (e.g., n=13, s could be a shuffle of the digits of all numbers 1..13 except k). Numbers have no delimiters; 1–9 are one digit, 10–99 are two digits. Explain your approach and time/space complexity.

Quick Answer: This question evaluates proficiency in string parsing, combinatorial reasoning, frequency analysis, and algorithmic problem solving for reconstructing a missing integer from concatenated or permuted digit sequences.

Related Interview Questions

  • Solve classic backend coding problems - Chime (medium)
  • Implement single-tab browser history navigation - Chime (Medium)
  • Compute minimum time with task cooldowns - Chime (Medium)
  • Simulate toppling board game outcome - Chime (Medium)
Chime logo
Chime
Jul 27, 2025, 12:00 AM
Software Engineer
Onsite
Coding & Algorithms
52
0

Given an integer n (1 ≤ n ≤ 99) and a digit string s formed by concatenating the decimal representations of the integers 1..n except for one missing number k, write a function to return k. Part A: s preserves the natural order (e.g., n=5, s="1234" → k= 5). Part B: s’s characters are arbitrarily permuted (e.g., n=13, s could be a shuffle of the digits of all numbers 1..13 except k). Numbers have no delimiters; 1–9 are one digit, 10–99 are two digits. Explain your approach and time/space complexity.

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Chime•More Software Engineer•Chime Software Engineer•Chime Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.