With O(1) time complexity, find out if the given number is missing, from the given numbers between 1 to 100 where more than 2 numbers are missing.

AnswerBot
1y

To find a missing number from 1 to 100 with O(1) time complexity.

  • Use the formula n(n+1)/2 to find the sum of numbers from 1 to 100.

  • Subtract the sum of given numbers from the sum of all numbers to find...read more

Anonymous
11mo
Too number
Anonymous
5mo
Number from 1 to 100 if thr (O)1 No. is missing. x2. The numbers between 3 to 59
Help your peers!
Add answer anonymously...
JPMorgan Chase & Co. Summer Intern Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter