Find Missing and Repeated Values | Mathematical Proof | Leetcode 2965 | codestorywithMIK

Subscribers:
92,300
Published on ● Video Link: https://www.youtube.com/watch?v=9tUv0SfUyGg



Duration: 0:00
4,483 views
210


Whatsapp Community Link : https://www.whatsapp.com/channel/0029Va6kVSjICVfiVdsHgi1A

Hi Everyone, this is the 72nd video of our Playlist "Leetcode Easy".
Now we will be solving an easy practice problem on Maths - Find Missing and Repeated Values | Mathematical Proof | Leetcode 2965 | codestorywithMIK

We will solve it with 2 Approaches and will also see the mathematical derivation of the equations to derive our answer.

Problem Name : Find Missing and Repeated Values | Mathematical Proof | Leetcode 2965 | codestorywithMIK
Company Tags : will update later
My solutions on Github(C++ & JAVA) - https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Mathematical/Leetcode Easy/Find Missing and Repeated Values.cpp
Leetcode Link : https://leetcode.com/problems/find-missing-and-repeated-values


My DP Concepts Playlist :    • Roadmap for DP | How to Start DP ? | ...  
My Graph Concepts Playlist :    • Graph Concepts & Qns - 1 : Graph will...  
My Segment Tree Concepts Playlist :    • Segment Tree | Introduction | Basics ...  
My Recursion Concepts Playlist :    • Introduction | Recursion Concepts And...  
Trie Playlist -    • Word Search II (Google, Amazon, Meta,...  
Difference Array Technique: Concepts & Qns :    • Introduction | What | How | Differenc...  
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Instagram : https://www.instagram.com/codestorywithmik/
Facebook : https://www.facebook.com/people/codestorywithmik/100090524295846/
Twitter : https://twitter.com/CSwithMIK
Subscribe to my channel :    / @codestorywithmik  

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝


Video Summary :
Approach-1 (Using HashMap):
This approach uses a HashMap to count the occurrences of each number in the grid. By iterating through numbers from 1 to N, it identifies the missing and repeated values based on their frequencies.

Approach-2 (Using Mathematics):
This approach calculates the expected sum and sum of squares for numbers from 1 to N. By comparing them with the actual sums from the grid, it derives equations to find the missing and repeated numbers.



✨ Timelines ✨
00:00 - Introduction
0:16 - Motivation
0:45 - Problem Explanation
2:37 - Approach 1 (Using Map)
5:27 - Approach 2 (Using Maths)
18:59 - Coding Approach-1
21:15 - Coding Approach-2


#MIK #mik #Mik #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips #interviewpreparation #hinglish #github #design #data #google #video #instagram #facebook #leetcode #computerscience #leetcodesolutions #leetcodequestionandanswers #code #learning #dsalgo #dsa #coding #programming #developers #techjobs #datastructures #algorithms #webdevelopment #softwareengineering #computerscience #pythoncoding #codinglife #coderlife #leetcode #leetcodesolutions #leetcodedailychallenge #codinginterview #interviewprep #technicalinterview #interviewtips #interviewquestions #codingchallenges #interviewready #dsa #hindi #india #hindicoding #hindiprogramming #hindiexplanation #hindidevelopers #hinditech #hindilearning #helpajobseeker #jobseekers #jobsearchtips #careergoals #careerdevelopment #jobhunt #jobinterview #github #designthinking #learningtogether #growthmindset #digitalcontent #techcontent #socialmediagrowth #contentcreation #codestorywithmik #codestorywithmick #codestorywitmik #codestorywthmik #codstorywithmik #codestorywihmik #codestorywithmiik #codeistorywithmik #codestorywithmk #codestorywitmick #codestorymik #codestorwithmik




Other Videos By codestorywithMIK


2025-03-14DSA Shorts with MIK - 11 | Avoid TLE in Competitive Programming with Fast I/O 🔥 | Part 2
2025-03-13Maximum Candies Allocated to K Children | Brute Force | Optimal | Leetcode 2226 | codestorywithMIK
2025-03-12Zero Array Transformation II | Brute Force | Better | Leetcode 3356 | codestorywithMIK
2025-03-11Maximum Count of Positive Integer and Negative Integer | Leetcode 2529 | codestorywithMIK
2025-03-10Number of Substrings Containing All Three Characters | Dry Runs | Leetcode 1358 | codestorywithMIK
2025-03-10Are mummy 🥹
2025-03-09Count of Substrings Containing Every Vowel and K Consonants II | Leetcode 3306 | codestorywithMIK
2025-03-08DSA Shorts with MIK - 10 | Avoid TLE in Competitive Programming with Fast I/O
2025-03-07Minimum Recolors to Get K Consecutive Black Blocks | 2 Approaches | Leetcode 2379 | codestorywithMIK
2025-03-06Closest Prime Numbers in Range | 2 Detailed Approaches | Leetcode 2523 | codestorywithMIK
2025-03-05Find Missing and Repeated Values | Mathematical Proof | Leetcode 2965 | codestorywithMIK
2025-03-04Count Total Number of Colored Cells | Maths Proof | 2 Approaches | Leetcode 2579 | codestorywithMIK
2025-03-03Check if Number is a Sum of Powers of Three | Maths Proof | 3 Ways | Leetcode 1780 |codestorywithMIK
2025-03-02Partition Array According to Given Pivot | Multiple Approaches | Leetcode 2161 | codestorywithMIK
2025-03-01Merge Two 2D Arrays by Summing Values | Multiple Approaches | Leetcode 2570 | codestorywithMIK
2025-03-01Nasha hai bhai 🥹
2025-02-27Recursion : The Ultimate Guru 🔥
2025-02-27Aamchi Mumbai, jithe sab kuch possible aahe ❤️
2025-02-26Length of Longest Fibonacci Subsequence | Recursion Memo | Bottom Up |Leetcode 873| codestorywithMIK
2025-02-25Maximum Absolute Sum of Any Subarray | Kadane's Algorithm | Leetcode 1749 | codestorywithMIK
2025-02-24Number of Sub-arrays With Odd Sum | Brute Force | Better | Optimal | Leetcode 1524 |codestorywithMIK