Pascal's Triangle LeetCode 118. Easy Code + Example + Explanation

  Рет қаралды 39,453

Code with Alisha

Code with Alisha

Күн бұрын

Given an integer numRows, return the first numRows of Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly above it as shown:

Пікірлер: 64
@kundanmishra5889
@kundanmishra5889 Жыл бұрын
Usually I don't comment on any video.......but this was sort and precise......and the best part aunty using phone in the bg😃😆😍.......you may be having the coolest mom ever😍
@user-ut6eo3be5g
@user-ut6eo3be5g 2 жыл бұрын
You are such a great teacher didi . I directly come to your video if I am struck in a problem without any second thought 🤩
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 жыл бұрын
Thanks a lot
@prathameshjadhav9618
@prathameshjadhav9618 2 ай бұрын
what a explanation DIDI you are GEM !!!thanks 🤠
@PHANTOMWORLD
@PHANTOMWORLD 2 жыл бұрын
finally got the explaination which explained this logic in the simplest way
@Chusaa
@Chusaa 10 ай бұрын
the clearest explanation I've ever seen
@ishaanrawal9327
@ishaanrawal9327 2 жыл бұрын
Thank you so much for this!! I was genuinely able to understand the intuition behind the problem and solve it clearly. Great work! Thanks a lot!!
@AnmolSrivastava-i7k
@AnmolSrivastava-i7k Ай бұрын
Can you please tell without giving values to ans matrix vector how we are using it's value like you have written v[j]=ans[i-1][j]+ans[i-1][j-1];
@yuvrajagarkar8942
@yuvrajagarkar8942 9 ай бұрын
Best instructor
@SPARTAN3108
@SPARTAN3108 2 жыл бұрын
Solving striver's SDE sheet from your videos. ✨
@AnkitRaj-xi6dr
@AnkitRaj-xi6dr Жыл бұрын
which sheet you follow A-Z sheet or top interview question (190) question sheet ?
@Mainak908
@Mainak908 Жыл бұрын
@@AnkitRaj-xi6dr if u have less time then sde sheet(190) otherwise a-z
@ashishkumarsharma9606
@ashishkumarsharma9606 Жыл бұрын
​@@AnkitRaj-xi6dr can u refer 190 sde sheet link ?
@ashishkumarsharma9606
@ashishkumarsharma9606 Жыл бұрын
@@Mainak908 ​ @AnkitRaj-xi6dr can u refer 190 sde sheet link ?
@KurumiddeKezia
@KurumiddeKezia 3 ай бұрын
Bro this is in c++ or java
@Nirajkumar-bn5ej
@Nirajkumar-bn5ej 2 жыл бұрын
Bahut badhiyan Alisha, Crystal clear
@JackCoderr
@JackCoderr 8 ай бұрын
thank you so much didi ,,,greate explanation ....simplified eak dum
@hameedmulani21
@hameedmulani21 2 жыл бұрын
Alisha You're the best 👍💯
@aryanatri9904
@aryanatri9904 Жыл бұрын
ty didi bhot ache se smjaaya aapne brut force.
@harshagarwal7832
@harshagarwal7832 3 жыл бұрын
best explanation thanks di for this type of good content really appreciate your work
@anishtripathi3800
@anishtripathi3800 8 ай бұрын
Keep growing mam, your explaination is so simple and easy to understand. Thanks again.
@simranbandhu9926
@simranbandhu9926 2 жыл бұрын
I really loved the way you teach.
@SaumyaSharma007
@SaumyaSharma007 2 жыл бұрын
Thank you Di 🌟👍. Subscribed today 🙂
@asheeshmishra5852
@asheeshmishra5852 2 жыл бұрын
Runtime: 0 ms, faster than 100.00% of C++ online submissions for Pascal's Triangle Memory Usage: 6.3 MB, less than 91.47% of C++ online submissions for Pascal's Triangle. thanks
@RahulKumar-wg6mr
@RahulKumar-wg6mr Жыл бұрын
amazing explanation i ever seen just awesome
@mridul1075
@mridul1075 2 жыл бұрын
nice explanation.....say NAMESTEE to aunty ji.😊
@mohammadwaquarsiddiqui4447
@mohammadwaquarsiddiqui4447 2 жыл бұрын
you are such a great teacher you should join an organisation .
@gtx1650max-q
@gtx1650max-q 2 жыл бұрын
Doesn't it use extra space as you declared a new vector which your are pushing ans vector that already has a vector of vectors ?
@pratyushpandey6139
@pratyushpandey6139 2 жыл бұрын
That example was lit !!!!!!!!!!!!!!!!!!!!!
@AbhiChunnu
@AbhiChunnu 11 ай бұрын
thank you dii… well explained 😊
@haseebshaik8669
@haseebshaik8669 4 ай бұрын
Can you do in Python also.will be helpful!
@entity2.089
@entity2.089 7 ай бұрын
let's ignore all the problems in our life like we ignored the lady sitting in the back. and yes, great explanation
@anshulkumar7871
@anshulkumar7871 2 жыл бұрын
Great explanation, Alisha. Thank you.
@binoynair9529
@binoynair9529 Жыл бұрын
Very well explained 👏
@avneetsingh4896
@avneetsingh4896 2 жыл бұрын
completely understand in just 6 mis great😇😇
@vishwacomedy2.0
@vishwacomedy2.0 Жыл бұрын
wow really nice explaination !!
@ImranKhan-br5dv
@ImranKhan-br5dv 2 жыл бұрын
Thanku alisha mam finally I understand pascal triangle , how it mack ☺☺
@MO-fg2cm
@MO-fg2cm Жыл бұрын
I tried without using an temp vector so I got stuck.. nicely explained
@sameerswankar
@sameerswankar Жыл бұрын
Hats off for ur explanation maam
@deepakraghav9849
@deepakraghav9849 3 жыл бұрын
What is your linkedin ?
@gunjangoel7144
@gunjangoel7144 2 жыл бұрын
what is the space and time complexity of this code??
@pawancreation2311
@pawancreation2311 3 жыл бұрын
Thank you so much, It helped me.
@utkarshsaxena7445
@utkarshsaxena7445 2 жыл бұрын
Marvellous explanation :)
@rahulsharma4321
@rahulsharma4321 2 жыл бұрын
great explanation
@sanabelbarham
@sanabelbarham Ай бұрын
you are so kind and lovely
@deepakraghav9849
@deepakraghav9849 3 жыл бұрын
Best Explaination
@yashsinha5385
@yashsinha5385 2 жыл бұрын
LEGEND EXPLANATION di 😂🙌
@Karan-zk9ke
@Karan-zk9ke Жыл бұрын
aunty at the back too doing dsa gridset
@vagabondfoodie5788
@vagabondfoodie5788 Жыл бұрын
😂😂😂😂 na n she is preparing for sde 2 🌚🌚🌚
@UECAnkitSharma
@UECAnkitSharma 2 жыл бұрын
Nice explained 👌
@jetendrajithu1662
@jetendrajithu1662 Жыл бұрын
you're making code so complex, write without collections, then begginers will understand easily
@imkd4real
@imkd4real 2 жыл бұрын
Thank you so much
@rajkumardongre3085
@rajkumardongre3085 2 жыл бұрын
maza aya...
@abdussamad0348
@abdussamad0348 2 жыл бұрын
didi kya padati ho bilkul mast
@piyushsagar8380
@piyushsagar8380 2 жыл бұрын
yeah , good explanation
@rahuljha8732
@rahuljha8732 7 ай бұрын
11/1120 test cases passed . Code rejected.
@satyajitpal4145
@satyajitpal4145 2 жыл бұрын
Thanks di ❤️❤️❤️
@lavanyakataria101
@lavanyakataria101 2 жыл бұрын
Di You look beautiful.
@adityapatel1962
@adityapatel1962 2 жыл бұрын
👍👍
@gengar_13
@gengar_13 3 жыл бұрын
thanku
@ytsh5752
@ytsh5752 2 жыл бұрын
noice mam
@mayank1522
@mayank1522 8 ай бұрын
pyara
@savithri4776
@savithri4776 10 ай бұрын
I am not understand please explain in tamil video 😊
@abdussamad0348
@abdussamad0348 2 жыл бұрын
subscriber += 1
Leetcode Decode Ways || Intuition + Code + Explanation
31:49
Code with Alisha
Рет қаралды 15 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 114 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 108 МЛН
Зу-зу Күлпаш 2. Интернет мошенник
40:13
ASTANATV Movie
Рет қаралды 601 М.
Pascals Triangle| Live Coding with Explanation | Leetcode - 118
9:55
Algorithms Made Easy
Рет қаралды 6 М.
Maximum Sum Triplet #InterviewBit Intuition+ Code + Example
17:36
Code with Alisha
Рет қаралды 19 М.
Pascal Triangle | Finding nCr in minimal time
26:45
take U forward
Рет қаралды 263 М.
Java code for Printing Pascal Triangle
10:28
TrainingMug
Рет қаралды 59 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 453 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 114 МЛН