• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
May 25, 2022 |520 Views
Print missing elements that lie in range 0 – 99
  Share   Like
Description
Discussion

Given an array of integers print the missing elements that lie in range 0-99. If there are more than one missing, collate them, otherwise just print the number. Note that the input array may not be sorted and may contain numbers outside the range [0-99], but only this range is to be considered for printing missing elements. Examples : Input: {88, 105, 3, 2, 200, 0, 10} Output: 1 4-9 11-87 89-99 Print missing elements that lie in range 0 – 99: https://www.geeksforgeeks.org/print-missing-elements-that-lie-in-range-0-99/

Read More