Тёмный

Consecutives 1's not allowed | Intuition + Code + Explanation | Flipkart Microsoft Must do Question 

Code with Alisha
Подписаться 29 тыс.
Просмотров 23 тыс.
50% 1

Опубликовано:

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@aasthajain92
@aasthajain92 11 месяцев назад
class Solution: def countStrings(self, n): dp = [0] * (n + 1) if n==1 or n==2: return n+1 dp[1] = 2 dp[2] = 3 for i in range(3, n + 1): dp[i] = (dp[i - 1] + dp[i - 2]) % (10**9 + 7) return dp[n]
@LeelaLakshmiKundi
@LeelaLakshmiKundi 11 месяцев назад
Great approach and logic .......Thanks❤❤
@deepak-ly3ob
@deepak-ly3ob 10 месяцев назад
Thank you ma'am for sharing the observation that needed to solve the problem.
@samyakagarwal1777
@samyakagarwal1777 Месяц назад
very nice logic and good explantaion
@dheerajsahu4547
@dheerajsahu4547 10 месяцев назад
The way you keep the things so easy is just awesome❤
@challengeAceiver
@challengeAceiver 10 месяцев назад
Whoaa, What an approach and explation. My mind blown away. How you get this approach pls share with us
@24_sanketgolar96
@24_sanketgolar96 Год назад
It is actually nth term in fibonacci series, good video 👍
@suzanaangboo2448
@suzanaangboo2448 Год назад
why it doesn't work if we dont module value with 1000000007?
@ronakchhabra1963
@ronakchhabra1963 Год назад
good tutorial keep doing
@yourpoookieboo
@yourpoookieboo Год назад
If a string is ending with 0 we can attach 0 or 1 but if a string is ending with 1 with we will only attach 0 at the end ...correct me if I'm wrong
@abhishekprajapati7958
@abhishekprajapati7958 2 месяца назад
You are correct
@sagarsahu9422
@sagarsahu9422 Год назад
Much better than leetcode editorial 😂👍
@md_abdulrahman
@md_abdulrahman 3 месяца назад
Thanks! Clear Explanation
@mr.naresh3004
@mr.naresh3004 2 года назад
nice presentation to build intuition keep doing....💥💥💥💥
@radhakrishnatalluri7649
@radhakrishnatalluri7649 3 года назад
Hey, Nice Work! A question though - would it be possible for you to split this playlist topic wise? Like a playlist for trees and a playlist for linked lists and so on.
@probabilitycodingisfunis1
@probabilitycodingisfunis1 3 года назад
Thanks for the suggestion @RadhaKrishna, building up the playlist
@ratneshsingh8403
@ratneshsingh8403 Год назад
Wow😊 great and unique intuition
@pradyumnmulegaon385
@pradyumnmulegaon385 5 месяцев назад
nice logic, loved it.....
@abhishekprajapati7958
@abhishekprajapati7958 2 месяца назад
Di your explaining method is similar to shradha di, love you di❤, i am understanding this question perfecty.
@poojasonare480
@poojasonare480 7 месяцев назад
awesome😃
@rishujeetrai5780
@rishujeetrai5780 3 месяца назад
Thank you so much
@lofigroove1912
@lofigroove1912 2 года назад
what about the Memoization solution or is this not possible to solve via Memoization?
@suzanaangboo2448
@suzanaangboo2448 Год назад
yeah you can do memorization and tabulation but requires 2 arrray.
@adarshmishra2126
@adarshmishra2126 8 месяцев назад
Though I did had a logic for the question but implementing it was puzzle for me. I watched only till 3:45 minutes of your video. And i passed all the test cases just in my first attempt. Glad to learn from an IITIAN.
@vagguraju6589
@vagguraju6589 10 месяцев назад
🔥
@deepika5880
@deepika5880 2 года назад
Great explanation ✨👍
@ajithamin9196
@ajithamin9196 2 года назад
Thank you
@ritesh1311
@ritesh1311 Год назад
Osm soln yr
@abhishekverma7604
@abhishekverma7604 Год назад
Understood!!
@cartube6219
@cartube6219 Год назад
Love u didi💖, you explained it very well. Wants to connect with you on Linkedin. Have Sent you request there , today.
Далее
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
Wait for it 😂
00:19
Просмотров 4,1 млн
Gas Station or Circular Tour problem
21:38
Просмотров 13 тыс.
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59