itni patience k sath samjhaya, Salute hai!! Crystal clear samajh aaya Ek aur testcase batana chahunga. If given array is [255], tab uski binary representation ho jaayegi 11111111. But uska check toh lagaya hi nhi, sidhe false return karna hai. So 3rd else if k baad ek 'else return false' lag jaayega bass kaam khatam
@prajyotgurav2 жыл бұрын
I couldn't understand today's Leetcode #393 question. Thanks to your video. I was able to understand and solve the question. 🙌🙌🙌
@adityarao88032 жыл бұрын
Awesome Explanation Sir. I was pretty confused looking and referring to other videos your video was very precise and easy to understand.
@ritikmishra52103 жыл бұрын
Those facing issue in leetcode submission, just add this condition in first if if(rbytes==0) { if ... else if ... . . *else return false* }
@Pepcoding3 жыл бұрын
Visit nados.pepcoding.com and sign up to NADOS, for better experience and precisely arranged content. Don't forget to follow us on Instagram instagram.com/pepcoding/ Happy Coding!
@Shivanai_h2 жыл бұрын
Thank u ritik😀
@atulkumarverma20422 жыл бұрын
I was here to comment the same 😇
@akhilesh592 жыл бұрын
Very Nice Explanation. Thanks a lot Sir
@creativegiant1483 жыл бұрын
Sir kuch case reh gaye hain solution me jaise ki agr pehla number hii 10 se start hoga toh program handle nahi kr paye ga usse Btw rest is great!!
@mickyman7533 жыл бұрын
i found the checking logic for remaining bytes in loop beautiful ,sumeet sir great as always
@shubhamrawat78954 жыл бұрын
Wao.. Great logic! I was thinking to use if else for every checking.. Using remainingbytes variable is nice 🔥😮
@Pepcoding4 жыл бұрын
Je baat. Mza-mev-jayte. Mze ke hmesha vijay hoti hai. jo fun aa rha ho to ek review daal do yar g.page/Pepcoding/review?rc
@rahulbhatia30754 жыл бұрын
Next level explaination 🙏🙏
@Pepcoding4 жыл бұрын
Keep watching!! Share as much as you can
@rahulbhatia30754 жыл бұрын
Sir pls make video on segment a nd Fenwick trees pls
@pariveshmehta22983 жыл бұрын
sir isme aapne ek case consider nahi kiya jisme koi bhi condition satisfy na ho. for example [255] but thanks for the awsome eplaination.🤗
@prernnajain15322 жыл бұрын
In that case we need to return false na
@balaveeraraghavareddy97644 жыл бұрын
Thanks a lot very nice explanation
@pjagannadham25402 жыл бұрын
good explanation sir
@pareshshikhaliya47023 жыл бұрын
best explanation
@shwetanksingh54382 жыл бұрын
Thank You!
@ankitmindewar37104 жыл бұрын
sir, video portal par play nhi ho rhi hai.
@Pepcoding4 жыл бұрын
beta will look into that
@umanggupta91994 жыл бұрын
Sir I think the code doesn't handle one case in which one element starts with 110 and next two or more elements start with 10. For that you need to add an else return false in first if case.
@glorysingh2 жыл бұрын
Yes I noticed the same bug.
@aashishjha32234 жыл бұрын
Sir, it's not submitting in leetcode. If we put else if(val >> 7) != 0 return false in last in else if then it's submitting. testcase - [255]
@Elon-musk-0074 жыл бұрын
it is because if there is anything else apart from these 4 conditions than it will always return false
@LegitGamer23453 жыл бұрын
@@Elon-musk-007 will always return true
@AmanRaj-nn6xx3 жыл бұрын
modify the code by adding false condition like this(If you still have the doubt and you survived the pandemic):- if(rembit == 0){ if( (val >> 7) == 0 ){ rembit = 0; } else if( (val >> 5) == 6){ rembit = 1; } else if( (val >> 4) == 14){ rembit = 2; } else if( (val >> 3) == 30){ rembit = 3; } else{ return false; }
sir aap agar formal shirt mei vedio bano ge to jyada viwes aayenge , give it a try !!!
@Pepcoding4 жыл бұрын
Yeah, bhot din ho gae. Kal se try karta hun. Shayad nha ke bnaun aur shave regular karoon to bhi fayda hoga. I agree, a teacher must look presentable.
@code74344 жыл бұрын
Sir binary search ke partitions of array ke que ki variations krwado please :)
@Pepcoding4 жыл бұрын
it's there in array section
@code74344 жыл бұрын
@@Pepcoding can u share the link , I m asking for problems like painter partition using binary search and its similar variations :).
@NishantKumar-hu7dq3 жыл бұрын
We need to handel one more case when rbytes==0 In else part for these type of input 197 130 8 130
@sanjaymajhi78613 жыл бұрын
sir, as per what u said in first video, that if there are 8 bits , then 7 bits represent the number and 1 bit for sign, then why this thing is not there in this question. I am confused at this point. Thank you
@shivanishree2762 жыл бұрын
sir can you please explain in English
@orien11162 жыл бұрын
sir what if [255] ?this shouldn't be the else condition when remainingByes == 0!?