• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
+ 2

How do you find the missing number in a given integer array of 1-100

Arrays

<script>
4th Dec 2018, 7:55 AM
Telaviv
Telaviv - avatar
3 Respostas
+ 3
If you sort the array, you can count from 1 and the missing value is found, when the count does not match the current array element.
6th Dec 2018, 5:35 PM
John Wells
John Wells - avatar
+ 1
https://code.sololearn.com/cSHiRlE9RMdt/?ref=app
6th Dec 2018, 8:56 PM
bedawang
bedawang - avatar
0
you can do something like this: https://code.sololearn.com/csq7fV0F92Jj/?ref=app https://code.sololearn.com/c3eh3fUEwy5c/?ref=app
7th Dec 2018, 1:46 AM
Sekiro
Sekiro - avatar

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Hello World!
0 Votes
What is wrost mistake that mostly people made while learning coding?
0 Votes
I'm lost with JavaScript (document.getElementById(".") And clearly making mistakes, Can someone help, I thought I had it but no.
0 Votes
What’s the actual difference between MB and GB in real-world usage?
1 Votes
Script file names
0 Votes
How to put multiple inputs in python?
1 Votes
Html learn
1 Votes
Je cherche des gens qui parle français pour apprendre le langage c
0 Votes
What can I do after learning python and how to create amazing codes. And how many times it would take to be a good programmer😅
0 Votes
Java doubt coders
0 Votes