- Видео 171
- Просмотров 34 269
Ethos Typos
Добавлен 7 дек 2019
Here you can find easy to understand explanations and solutions of contest, competitive programming question solutions etc.
2425. Bitwise XOR of All Pairings | Leetcode Daily Challenge
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C++. Learn coding tips, tricks, and strategies to crack technical interviews at top companies like Google, Amazon, and Facebook. Don’t forget to subscribe for daily LeetCode solutions and coding tips!
You can also download our Leetcode ally app to access Leetcode in your mobile phone with amazing additional features - play.google.com/store/apps/details?id=com.leetos
#leetcode #coding #inter...
You can also download our Leetcode ally app to access Leetcode in your mobile phone with amazing additional features - play.google.com/store/apps/details?id=com.leetos
#leetcode #coding #inter...
Просмотров: 80
Видео
2429. Minimize XOR | Leetcode Daily Challenge
Просмотров 1802 часа назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
3223. Minimum Length of String After Operations | Leetcode Daily Challenge
Просмотров 1527 часов назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
2116. Check if a Parentheses String Can Be Valid | Leetcode Daily Challenge
Просмотров 1509 часов назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
1400. Construct K Palindrome Strings | Leetcode Daily Challenge
Просмотров 20612 часов назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
916. Word Subsets | Leetcode Daily Challenge
Просмотров 17614 часов назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
2185 Counting Words With a Given Prefix | Brute Force | Trie | Prefix Tree| Leetcode Daily Challenge
Просмотров 12616 часов назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
3042. Count Prefix and Suffix Pairs I | Leetcode Daily Challenge
Просмотров 16119 часов назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
1408. String Matching in an Array | Leetcode Daily Challenge
Просмотров 22721 час назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
1769. Minimum Number of Operations to Move All Balls to Each Box | Leetcode Daily Challenge
Просмотров 207День назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
2381. Shifting Letters II | Leetcode Daily Question
Просмотров 292День назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
1930. Unique Length 3 Palindromic Subsequences | Leetcode Daily Challenge
Просмотров 217День назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
2270. Number of Ways to Split Array | Leetcode Daily Challenge
Просмотров 177День назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
2559. Count Vowel Strings in Ranges | Leetcode Daily Challenge
Просмотров 20914 дней назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
1422. Maximum Score After Splitting a String | 3 Approaches | Leetcode Daily Challenge
Просмотров 25414 дней назад
Welcome to my channel! In this video, I have solved today’s LeetCode Daily Challenge with a step-by-step explanation and optimal solution. Whether you’re preparing for FAANG interviews or improving your problem-solving skills, my videos cover coding interview questions, data structures, and algorithms in C . Learn coding tips, tricks, and strategies to crack technical interviews at top companie...
983. Minimum Cost For Tickets | Leetcode Daily Challenge
Просмотров 17314 дней назад
983. Minimum Cost For Tickets | Leetcode Daily Challenge
2466. Count Ways To Build Good Strings | Leetcode Daily Challenge
Просмотров 16514 дней назад
2466. Count Ways To Build Good Strings | Leetcode Daily Challenge
1639. Number of Ways to Form a Target String Given a Dictionary | Leetcode Daily Challenge
Просмотров 10414 дней назад
1639. Number of Ways to Form a Target String Given a Dictionary | Leetcode Daily Challenge
689. Maximum Sum of 3 Non Overlapping Subarrays | Leetcode Daily Challenge
Просмотров 24114 дней назад
689. Maximum Sum of 3 Non Overlapping Subarrays | Leetcode Daily Challenge
1014. Best Sightseeing Pair | Leetcode Daily Challenge
Просмотров 16214 дней назад
1014. Best Sightseeing Pair | Leetcode Daily Challenge
45. Jump Game II | Leetcode Daily Challenge
Просмотров 6121 день назад
45. Jump Game II | Leetcode Daily Challenge
55. Jump Game | Leetcode Daily Challenge
Просмотров 4321 день назад
55. Jump Game | Leetcode Daily Challenge
494. Target Sum | Leetcode Daily Challenge
Просмотров 19021 день назад
494. Target Sum | Leetcode Daily Challenge
3203. Find Minimum Diameter After Merging Two Trees | Leetcode Daily Challenge | Problem of the day
Просмотров 21421 день назад
3203. Find Minimum Diameter After Merging Two Trees | Leetcode Daily Challenge | Problem of the day
2471. Minimum Number of Operations to Sort a Binary Tree by Level | Leetcode Daily Challenge
Просмотров 15921 день назад
2471. Minimum Number of Operations to Sort a Binary Tree by Level | Leetcode Daily Challenge
Find Building Where Alice and Bob Can Meet | Leetcode
Просмотров 33821 день назад
Find Building Where Alice and Bob Can Meet | Leetcode
Maximum Number of K Divisible Components | Leetcode
Просмотров 16021 день назад
Maximum Number of K Divisible Components | Leetcode
Reverse Odd Levels of Binary Tree | Leetcode
Просмотров 12921 день назад
Reverse Odd Levels of Binary Tree | Leetcode
Max Chunks To Make Sorted | 3 Approaches | Leetcode
Просмотров 14028 дней назад
Max Chunks To Make Sorted | 3 Approaches | Leetcode
Final Prices With a Special Discount in a Shop | Leetcode
Просмотров 12228 дней назад
Final Prices With a Special Discount in a Shop | Leetcode
Like always, loved your explanation, liked the video, and added a comment as gratitude! 💝
int setBits(int& a) { int cnt = 0; int temp = a; while (temp) { if (temp & 1)cnt++; temp = temp >> 1; } return cnt; }
Thank you so much for this great explanation!
Thank you, ma'am. I love your approach to studying the problem statement & come up with the observations to determine the next steps to solution
Thank you so much for such a great explanation, ma'am! 🙌
Good Explanation keep it up
Thank you so much for such a great explanation ♥!
good explanation
Very good explanation How to learn explain like u
Thank you 👍
Thank you 🙏
Thank you very much, alternative startswith & endswith methods also work here!
yes
Do NOT discontinue doing this please
Thank you, ma'am. I understood your explanation and went ahead with solving it with Set for efficiency in lookup, let me share: - Sort the array by length - Convert the sorted list into a Set - Run a for loop for each word inside words list - Pop the item we are searching from the Set - Lookup into the Set and try to find that word's existence as a sub-sequence in the remainder of words - Apply break once found a match and append the word into the output/result array
❤
❤❤
Thank you 🙏
❤
how am I suppose to come up with this in an interview ??? luck game it is.
class Solution { public: string shiftingLetters(string s, vector<vector<int>>& shifts) { string temp=s; for(int i=0;i<shifts.size();i++) { int start=shifts[i][0]; int end=shifts[i][1]; int direction=shifts[i][2]; if(direction) { for(int j=start;j<=end;j++) { int x=temp[j]; if(x=='z') temp[j]='a'; else temp[j]++; } } else { for(int j=start;j<=end;j++) { int x=temp[j]; if(x=='a') temp[j]='z'; else temp[j]--; } } } return temp; } }; brute force. gives TLE. So i am here
I can understand the problem but i donno how to implement it in code😢.
if you practice implementing more and more problems, you will gradually be able to write the code as well.
Thank you 😊
♥♥♥♥
Great!
♥♥♥
Thank you, ma'am!
❤❤
Thank you, and happy new year, ma'am. The Greatest aspect of your videos is how awesome you explain the problem statement and gradually proceed towards building the solution!
Thank you and Happy New Year to you too! 🎉
Loved your explanation ❤
❤
Thank you so much, ma'am!
Happy new year ❤🎉
Happy New Year to you too! 🎉
Thank you so much for this great explanation & keeping the implementation simple, ma'am!
Thank you, ma'am. I think the regular recursive approach to solve a big problem and memoization of the sub-problems is the Top-down approach & the Bottom-up approach basically indicates solving all subproblems iteratively with Tabulation. In summary: - Top-Down: Recursive + Memoization - Bottom-Up: Iterative + Tabulation
Thank you, ma'am!
Thanks for explaining. Instead of pure DP, I went ahead with DP+Greedy approach by initially preparing the max sub-array sum similar to what you explained here. However, next I built a left max sub-array & right sub-array; Furthermore, the solution was retrieved by optimally choosing the middle sub-array! Anyway, I have plan to learn the approach that you explained too.
Excellent
thanks for helping.
Well Explained!!
Thank you so much!
Nhi samjha :(
Thanks so much for covering recursive approach alongside optimizing it by memoization & dynamic programming, Wow!
my recusive solution class Solution { int tryAllWays(int index,int &cnt,vector<int>& nums,int sum,int target) { if(index==nums.size()) { if(sum==target) { cnt+=1; return cnt; } return cnt; } // sum+=nums[index]; tryAllWays(index+1,cnt,nums,sum+nums[index],target); tryAllWays(index+1,cnt,nums,sum-nums[index],target); return cnt; } public: int findTargetSumWays(vector<int>& nums, int target) { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int cnt=0; return tryAllWays(0,cnt,nums,0,target); } };
Jump game solution was so elegant 😍
I am struggling with DP questions. Any sources you wanna mention from where you learnt it ? Last question Target sum I was able come up with the recursion solution but not the dp one. 😢
👍
Really appreciate your effort to explain the problem statement and solutions in small breakdowns 😇
Thank you so much!
Thank you so much for the explanation!
Thank you for the explanation, however, I went ahead with DFS for this problem!
That's another valid approach, good job!
@ethostypos Thank you!
❤