- Видео 13
- Просмотров 135 901
Room No. 547
Добавлен 6 окт 2022
1944. Number of Visible People in a Queue | Leetcode | Hard | Story Like Solution
We are going to develop Java Solution Using Monotonically Increasing Stack to solve this hard problem on Leetcode.
Leetcode 1944 Number of Visible People in a Queue
Link To The Problem:
leetcode.com/problems/number-of-visible-people-in-a-queue/
Problem Description:
There are n people standing in a queue, and they numbered from 0 to n - 1 in left to right order. You are given an array heights of distinct integers where heights of i represents the height of the ith person.
A person can see another person to their right in the queue if everybody in between is shorter than both of them.
Return an array answer of length n where answer of i is the number of people the ith person can see to their ri...
Leetcode 1944 Number of Visible People in a Queue
Link To The Problem:
leetcode.com/problems/number-of-visible-people-in-a-queue/
Problem Description:
There are n people standing in a queue, and they numbered from 0 to n - 1 in left to right order. You are given an array heights of distinct integers where heights of i represents the height of the ith person.
A person can see another person to their right in the queue if everybody in between is shorter than both of them.
Return an array answer of length n where answer of i is the number of people the ith person can see to their ri...
Просмотров: 133
Видео
Derivation of 1D,2D,3D, Row major, Column Major with short tricks || GATE || DSA || AKTU || BTech
Просмотров 925Год назад
🚀 Mastering Arrays: 1D, 2D, 3D, Row Major, and Column Major Explained! 🚀 Welcome to an in-depth journey into the world of arrays! 📊 In this video lecture, we delve into the fundamentals of 1D, 2D, and 3D arrays, exploring their intricacies and applications. 🤔💡 🔍 Topics Covered: - Understanding the Basics of 1D, 2D, and 3D Arrays - Unraveling the Mysteries of Row Major and Column Major in 2D Arr...
| PEGION HOLE | 10 blue balls, 20 red balls, 8 green balls, 15 yellow balls & 25 white balls |
Просмотров 1,4 тыс.Год назад
Pegion Hole Principle #galgotiasuniversity #btech #gate #iit #pegionhole #csirnet If you need solution of these type of questions put the question in comment section. I will try my best to help you. And if you find any mistake in the solution you can mention in the comment section too. Your suggestions are always welcome . If you find the video helpful please show your support by hitting the li...
Pegion Hole Principle-Find min. no. of students in a class to be sure 3 of them r born in same month
Просмотров 600Год назад
Pegion Hole Principle Full Explanation With Example - Find the minimum number of students in a class to be sure that three of them are born in same month. #galgotiasuniversity #btech #gate #iit #pegionhole #csirnet If you need solution of these type of questions put the question in comment section. I will try my best to help you. And if you find any mistake in the solution you can mention in th...
In how many ways the letters of the word PERMUTATIONS be arranged if.....|P&C|GATE|IIT JAM|CSIRNET|
Просмотров 231Год назад
#Roomno547 #galgotiasuniversity #btech #csirnet #gate #iit #PandC
Detailed Video on K-Map in POS Form IIT-JAM | GATE | CSIR-NET | BSC | MSC | BTECH |
Просмотров 261Год назад
#galgotiasuniversity #bsc #btech #csirnet #gate #iit #ids #kmap #msc
Make a K-map for the function, f(A,B,C,D) = ¶M (3,4,5,7,11,13,15)) + d(6,8,10,12)
Просмотров 7 тыс.Год назад
#galgotiasuniversity #btech #iit #bsc #csirnet #gate #kmap #ids
Minimize four-variable logic function using K-Map, f(A,B,C,D) = ∑m(1,2,6,7,8,13,14,15) + d(3,5,12).
Просмотров 30 тыс.Год назад
#galgotiasuniversity #btech #iit #bsc #csirnet #gate #kmap #ids
Minimize the four-variable logic function using K-Map, f(A,B,C,D) = ¶m (4,6,10,12,13,15).
Просмотров 9 тыс.Год назад
#galgotiasuniversity #btech #kmap #ids #gate #iit #bsc #csirnet
Minimize the 4-variable logic function using K-Map,f(A,B,C,D)= ABC′D+A′BCD+A′B′C′+A′B′D+AC+AB′C+B′.
Просмотров 36 тыс.Год назад
#galgotiasuniversity #btech #kmap #ids #gate #iit #bsc #csirnet
Minimize the four-variable logic function using K-Map, f(A,B,C,D) = ∑m(0,1,2,3,5,7,8,9,11,14).
Просмотров 49 тыс.Год назад
#galgotiasuniversity #btech #kmap #ids #gate #iit #bsc #csirnet
Detailed Video on FULL ADDER- BTech | BSC | GATE | IIT-JAM | CSIR NET
Просмотров 307Год назад
#fulladder #galgotiasuniversity #btech #gate #bsc #msc #csirnet #iit
Full Adder Using NAND & NOR Gates
Просмотров 2,3 тыс.Год назад
#galgotiasuniversity #RoomNo547 #FullAdder #FullAdderUsingNandGate #FullAdderUsingNorGate #FullAdderUsingNand&NorGate
Thanks sir
Superb 🎉
Great explanation ! ❤
👍
why are you put the channel name like this sir .In this world so many name is available if that name behind any mysterious story then share your felling sir
Thank you bhai.❤
Thanks ❤❤❤❤❤❤
super da
Very well explained.. easily smjh aa gaya
but redundant grp ko chodna tha na ese to pehele sab repeat ho raha hai
Thank you so much Sir.
sir khup khup abhari
Very underrates teacher 💯
Ache teachers hamesha underated kyu hote hai outstanding explanation ❤
Minimize the following expression using K map Y= ∑m (0,1,3,7,8,9.11.15) and realize it by basic gates. please solve the question
So eassy wow 😮 👍
Aur topics ke bhi video upload kro plzz 🙏🙏
Par Bhai single variable ko nahi likh te hai na ?? 🤔 Like jo aapne last me Kiya hai ABCD bar ??
If there's no one to form pair then u have to
Best explanation
Tq
Thank you sir😊😊😊
Best way to explain sir 🙏
Can I know Express the logic in sum and carry and simplify it and please make the truth table sir🙏
wo so easy explaination thank you sir❤❤❤❤❤
A+B' yeh nai hoga kya?
Box number 6 me jo X hai wo helper ke tarah kaam karti hai Box number 4,5,7 ke jo 0's hai wo already cover ho chuke hai quad me Is wajah se unhe kisi ke help ki jarurat nahi hai Is wajah se humne box 6 ke X ki help nahi li That's why A+B' nahi hoga I think this can help u, If still not , let me know
Thank you ❤
Sir last ma 6 aur 4 ka b pair bnta tha ik ma X tha ik ma zero am i right?
I love you sir thank you for this is very helpfull for me ❤
Tq❤
❤
great gob sir 🫡
Tq sir
Bahut bada wala😊 thanku sir itna achha se explain karne ke liye.
thanks for the right answer, great explanation❤
Very good sir
Dear sir can you please make a k-map and simplify for this F=A'B+BC'+B'C'
Upload karta hu mai
Great
Sir aapne green bale k map me A'D' likha he usme correct A'D' aayega😊😂
Maine by mistake A'D' likha hai but usko correct kar lijiyega waha A'D hoga
Sir if only sigma lekha hoga to hum kisme karange sop or pos
SOP
Sir why did you cancel the green one that you previously wrote and used whitener
Because the zero in 12th position would come in two pairs(brown and green), and we only need it to be in one pair
Sir i got the reson what i understood that for creating a group you need atleast one 0 which does not participate in any group
Toh 4 Vala Bhi Toh 2 Baar Use Hua Hai 🤔@@nichormezx963
Thanks ❤
Kal exam hi😂
best video on youtube about K-map thank y0u sir
Well explained ❤
Thank sri
good explanation
Sir please please reply. Aapne ab c d(bar) m jo akela 1 tha use kyu liya ? Vo to akela tha koi pair nhi ban rba tha
The purpose of using K-Map is to minimise the names that are given using the alphabets(A,B,C,D) to the inputs say 1 in this above question. We can't leave any input. For minimising them we make groups,which we call Octect(Set of 8) Quad(Set of 4) Pair(Set of 2) One thing you must have noticed after solving the question that larger is the group is shotter is the name. Let's say if you get Octect(Set of 8) ➤ You can name it using only "one" alphabet (say : A or B etc.) Quad(Set of 4) ➤ You need atleast "two" alphabets to name it (say : AB or AB' etc.) Pair(Set of 2) ➤ You need atleast "three" alphabets to name it (say : ABC or AB'C' or A'BC' etc.) Atlast if you don't get any of the above mentioned you need to consider it as a set of "one" element if ant element is left alone Because question is asking to minimise the name not to remove or leave any element's name. And you need minimum "four" alphabets for naming it (say : ABCD or A'BC'D etc.) You can observe as the size of the set id decreasing the need of the alphabet for naming is increasing. Our purpose id to reduce it, so we will search for larger group(Octect>Quad>Pair>Singlet) because larger is the group shorter is the name and more we can minimise it. Atlast if we don't get any group which is greater than or equal to 2 we will not leave it you will name it considering it as a set of 1. Note : Don't make a set of any random number like group of 5 or group of 7 etc. ➤ Grouping is always done 2⁰=1 2¹=2 2²=4 2³=8 ...and so on..... I have tried my level best to explain through text , If your doubt is not clear let me know in the comment section I will provide you my linkedin id you can contact me their I will make alternative approach to resolve your doubt.
Kya baat hai sir ji ❤kya he padate hu ❤
khan sir's voice lite 😄
Sir pigeon ka spelling galat hai😅 pegion nhi "pigeon" hota hai sir😇 shi kr lijiyega please