Leetcode 2401. Longest Nice Subarray | Weekly Contest 2401.
ฝัง
- เผยแพร่เมื่อ 3 ก.ย. 2022
- Use coupon ALISHA on any GeeksforGeeks course to get 10% discount:
practice.geeksforgeeks.org/co...
Connect with me on LinkedIn : / alisha-parveen-80579850
Check out our other playlists:
Dynamic Programming:
• Dynamic Programming
Trees:
• Trees
Heaps and Maps:
• Heaps and Maps
Arrays and Maths:
• Arrays and Maths
Bit Manipulation:
• Bit Manipulation
Greedy Algorithms:
• Greedy Algorithms
Sorting and Searching:
• Sorting and Searching
Strings:
• Strings
Linked Lists:
• Linked Lists
Stack and Queues:
• Stacks and Queues
Two Pointers:
• Two pointers
Graphs, BFS, DFS:
• Graphs, DFS, BFS
Backtracking:
• Backtracking
Non- DSA playlists:
Probability:
• Probability
SQL-Basic Join functions:
• SQL - Basic JOIN Funct...
SQL-Basic Aggregate functions:
• SQL-Basic Aggregate Fu...
Link to problem : leetcode.com/contest/weekly-contest-309/problems/longest-nice-subarray/
Code:
int num = 0;
int j =0;
int ans = 0;
for(int i=0;i
your explanation is by far the best i've seen on youtube. I am midway through the video and I am confident I can now solve the problem
Awesome
Keep making lc contest editorials
Its immensely useful in upsolving
legendary explaination.
Beauty with brain.
Brilliantly explained Sister. @11:00.
Best and Clear Explanation So far on youtube .
thank you very nicely explained.
It's really nice solution, i found it very helpful.
Perfect explanation!! Thanks
Best Explanation Thank's lot for doing.....
Hey alisha,
The explanation was really good. Really appreciate the work that you are doing.
your method of teaching is awesome.
Keep doing.
ur explanation make this ques more beautiful
Your explanation is always awesome
Didi loved this problem just see the excitement in the video best explanation till now ❤ i think u like bit manipulation 😂 but i just hate it 🌚
the best. made me subscribe!
This the best explanation , Intuitive
Thank you very much🙏🙏
Awesome explanation!
You earned a subscriber
very cool, short and precise solution.
Nice and clear explanation :). Thank you (y)
wonderful explanation !
Good explanation. Love it
great Explanation
nicely explained, that set bit part, the number has set bits of both 3 and 8, that was the tricky part to do which made this problem harder.
Thanks Naveen, yes , agreed !
very nice explanation
mam you really give most optimal solution and explanation with drawing is also very good...👍
thanks
Great Explanation Mam 😃
thank you, it really helps in upsolving
Thanks Nishant
What a explaination !!!! 😎😎😎
Amazing explanation!
Thanks Ankit
did you solve everry question of leetcode weekly and biweekly
I'm learning tNice tutorials, guitar, and 3d animation at the sa ti what am i doing to myself?
Sa. TNice tutorials quarantine is making question my whole existence.
great explanation dii , 😒i got TLE using brute
Thanks Shreyansh
i have been waiting for this video
Why u were waiting u can't try
@@reshmaparveen6679 i did but i was just waiting for explanation as they so clear
leet code added some test cases, so use long long for num to get it accepted. BTW thanks Alisha
would u marry me