No video

Missing Number | Multiple Approaches | Leetcode 268

  Рет қаралды 3,458

codestorywithMIK

codestorywithMIK

Күн бұрын

Пікірлер: 25
@anjanisharma3049
@anjanisharma3049 6 ай бұрын
Hello, a simple way to solve this is by using the 1st approach sir mentioned in the video: class Solution { public: int missingNumber(vector& nums) { int n=nums.size(); int sum=n*(n+1)/2; int s=0; for(int i=0;i
@sauravchandra10
@sauravchandra10 6 ай бұрын
We can also use cyclic sort in this problem, which is both time and memory efficient. Code: class Solution { public: int missingNumber(vector& nums) { int n = nums.size(); int i = 0; for(;i
@theOmKumar
@theOmKumar 6 ай бұрын
when we do l m){//we are on res idx or res is on left r = m; } else{//everything is fine till this idx,check for next l = m+1; } } return l or r doesn't matter;
@ugcwithaddi
@ugcwithaddi 6 ай бұрын
Well explained as always
@learnwithazhar1703
@learnwithazhar1703 6 ай бұрын
Amazingly explained!
@adik3680
@adik3680 6 ай бұрын
Please make the pending video on delete implementation in trie.
@codestorywithMIK
@codestorywithMIK 6 ай бұрын
Noted on this 👍🏻
@TheBusaSinger
@TheBusaSinger 6 ай бұрын
Thanks for this!
@manimanohar_001
@manimanohar_001 6 ай бұрын
Bhaiya bit manipulation pe bhi playlist bana do pls
@souravjoshi2293
@souravjoshi2293 6 ай бұрын
Thank mik. if you get time, can you please post weekly contest Qn-4 of this week
@project_eth
@project_eth 6 ай бұрын
can we solve this question by using hash sets, since one main property of hash sets is we cannot add repeated numbers and that way the time complexity will also be O(1)
@aws_handles
@aws_handles 6 ай бұрын
Yes but space will become O(n)
@prajwalshaw9217
@prajwalshaw9217 6 ай бұрын
Hello bhaiya . Can u please make a video on q no.4 of leetcode biweekly 124...which happened on last saturday. Thanks.
@oqant0424
@oqant0424 6 ай бұрын
solved on my own using 2 approaches came here to learn something new Thanks POTD DONE[20.2.24] ✅✅
@dayashankarlakhotia4943
@dayashankarlakhotia4943 6 ай бұрын
good explanation sir.one correction in java code in 3rd approach int result =n;
@ujjawaltyagi8540
@ujjawaltyagi8540 6 ай бұрын
can any one tell me when we use sort(v.begin(, v.end()) in c++ which type of sort it is? we take worst case complexity as nlogn then what is best case and average case ?
@viditvaish7317
@viditvaish7317 6 ай бұрын
sir please leetcode ques number 621 (Task Scheduler) bata dejiye
@anuppatankar4294
@anuppatankar4294 6 ай бұрын
Great video 👌🏻
@nish0798
@nish0798 6 ай бұрын
@codestorywithmik. I have a doubt if we store 0 in res instead of n this code is not working why so is any other way to make changes in code if we want to store 0 in res instead of n one more how we will come to know in these types of questions whether we have to store n in result or 0 in res plz reply bro
@gauravbanerjee2898
@gauravbanerjee2898 6 ай бұрын
Thanks a lot bhaiya ❤❤
@faizanalam8823
@faizanalam8823 6 ай бұрын
amazing !
@aws_handles
@aws_handles 6 ай бұрын
Niceee. Thanks
@Abhay14
@Abhay14 6 ай бұрын
bhaiya jo 3rd approach me code likha h vha O(nlogn) time complexity nhi aaeggi
@adarshjha5126
@adarshjha5126 6 ай бұрын
Haa
@shabananoor9423
@shabananoor9423 6 ай бұрын
❤❤
Maximum Odd Binary Number | 2 Approaches | Leetcode 2864
14:17
codestorywithMIK
Рет қаралды 3,4 М.
Bitwise AND of Numbers Range | 2 Approaches | Dry Run | Leetcode 201
34:43
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
Glow Stick Secret Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 18 МЛН
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 24 МЛН
Missing Number - Blind 75 - Leetcode 268 - Python
12:11
NeetCode
Рет қаралды 112 М.
Google Coding Interview With A High School Student
57:24
Clément Mihailescu
Рет қаралды 4,1 МЛН
Learn Web Development And ACTUALLY Get A Job | Ultimate Guide
1:33:52
James Cross
Рет қаралды 1,3 МЛН
How To Think Like A Programmer
1:00:07
Coding Tech
Рет қаралды 2 МЛН
Counting Bits | Leetcode #338
11:51
Techdose
Рет қаралды 69 М.
Sum of Subarray Minimums | Detailed | Leetcode 907
49:39
codestorywithMIK
Рет қаралды 23 М.
Medium Google Coding Interview With Ben Awad
51:27
Clément Mihailescu
Рет қаралды 1,3 МЛН
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00