Find Missing Number In An Array
Вставка
- Опубліковано 3 жов 2024
- JOIN ME
-----
UA-cam 🎬 / @cppnuts
Patreon 🚀 / cppnuts
COMPLETE PLAYLIST
------------
C++ Tutorial For Beginners: • Introduction To C++
STL (Standard Template Library): • STL In C++
ThreadIng In C++: • Multithreading In C++
Data Structures: • Data Structure
Algorithms: • Binary Search
Design Patterns: • Factory Design Pattern...
Smart Pointers: • Smart Pointer In C++
C++14: • Digit Separator In C++
C++17: • std string_view in C++...
C++ All Type Casts: • static_cast In C++
INTERVIEW PLAYLIST
------------
C++ Interview Q&A: • Structural Padding & P...
C++ Interview Q&A For Experienced: • How delete[] Knows How...
Linked List Interview Questions: • Find Kth Node From Bac...
BST Interview Questions: • Search Element In Bina...
Array Interview Questions: • Reverse An Array
String Interview Questions: • Check String Is Palind...
Bit Manipulation Questions: • Find Set Bit In Intege...
Binary Tree Interview Question: • Invert Binary Tree
Sorting Algorithms: • Bubble Sort
C++ MCQ: • Video
C MCQ: • What printf returns af...
C Interview Questions: • Designated Initializat...
QUICK SHORT VIDEOS
-------------
C++ Short : • C++ Short Videos
C Short : • Shorts C Programming MCQ
Time Lines
=========
0:05 Introduction
1:39 Brute Force Approach
2:19 Good Solution
In this video we will learn how to find the missing element of number from an array. This is beginner level interview question, and if interviewers ask this to check your thinking ability, because this problem can be done in very simple way if we use summation rule.
Computer science and electronics background students get this kind of questions a lot in their interviews. This questions comes under array interview problems, and i have a full playlist on this topic.
Do let me know if there is any doubt, i will sure replay in the comment section.
#ArrayInterview #dsa #algorithms #InterviewQuestions
Hi, I feel there is something missing in this logic. If you have a for loop you will overflow as the array would have one element less.
What if there is same element repeated 2-3 times, then it will not work
Fantastic approach
Hi Rupesh, I'm a big fan of your channel. With the help of your channel, I have learned most of the C++, Smart Pointer, STL, Algo's, and threading concepts. Keep going. Here I do have some questions, What happens when the array is like this N=5, use Case-1: A1[ 1,2,3,3,5 ] ? use case-2: A2[1,2,6,3,5] ..?
Hi Vijay
Actually ye sab standard questions hai..
No doubt you can change but then solution will also have to change.
@@CppNuts but sir question why has take n is 5. why n is not take 10 or any other number
Hi rupesh, you doing great stuff and thanks for knowledge and time ,and also i am sharing cpp nuts in my organization and also known institute ,whenever anybody ask about cpp i will share cpp nuts that much i loved the channel.
thank you
Amazing explanation ❤
If there is two number is missing so how can we solve that
Pls improve your Explaination in sense.. Talk slow and explain still more easily with examples