Missing Number | LeetCode problem 268

preview_player
Показать описание
Missing Number
Leetcode problem number 268
Solution in JAVA

JAVA interview programming playlist:

#java #interviewquestions #leetcode
Рекомендации по теме
Комментарии
Автор

This is actually great the solution is much better than other

AmitBiswas
Автор

Simple and sweet explanantion ever seen;

Er.gamingx
Автор

if more than one number are missing then ?

stmtyper
Автор

I have a doubt, In the for loop we are finding the SUM of given array which is cool, When we are doing the n(n+1)/2 formula- Here also we are checking the sum of nums array only (nums.length). I think we need to do do int n= nums.length+1; then int actualSum= (n*(n+1))/2 works. Is this approach correct. How it is showing correct output in your code is my confusion.

NarasimhaRaoVasireddy-rv
Автор

Nice and easy explained ❤😊 di
#23/02/2024

Future_software_enginneer
Автор

maam what if there is two missing number then this code will be failed

GulshanKumar-rmfz
Автор

Best way of explanation. Whenever I have doubts on LeetCode problem, I come here and find solution with great explanation. Thank you for this much efforts.💕

krishnaanandiswaraa
Автор

This is the most very easy and efficient approach. Thank you.

tianzhengmai
Автор

This is a very interesting approach. Cyclic sort and follow up with locating the missing value also works too.

KaisarAnvar
Автор

Great Explanation! Thank you so much...please keep uploading leetcode problems..

urmilasharma
Автор

thank you so much, your way of explaination is awesome

Omkar-fgws
Автор

di plz tell me which graphic tablet you use plz its a humbel request plz plz plz plz plz

krishnaanandiswaraa