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

КОМЕНТАРІ • 10

  • @abhisunkara
    @abhisunkara 10 годин тому

    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.

  • @prashantjannu2652
    @prashantjannu2652 2 місяці тому +1

    What if there is same element repeated 2-3 times, then it will not work

  • @ojasviagrawal3180
    @ojasviagrawal3180 8 місяців тому +2

    Fantastic approach

  • @vijaydd2859
    @vijaydd2859 2 роки тому +2

    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] ..?

    • @CppNuts
      @CppNuts  2 роки тому +1

      Hi Vijay
      Actually ye sab standard questions hai..
      No doubt you can change but then solution will also have to change.

    • @web_with_gautam94
      @web_with_gautam94 11 днів тому

      @@CppNuts but sir question why has take n is 5. why n is not take 10 or any other number

  • @madhukusunoju3709
    @madhukusunoju3709 2 роки тому

    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

  • @ayushgupta6847
    @ayushgupta6847 2 місяці тому

    Amazing explanation ❤

  • @MoradiyaMeet-xo7pm
    @MoradiyaMeet-xo7pm 2 місяці тому

    If there is two number is missing so how can we solve that

  • @achyuthagna5078
    @achyuthagna5078 5 місяців тому +2

    Pls improve your Explaination in sense.. Talk slow and explain still more easily with examples