- 34
- 1 568
Zayeem Zaki
เข้าร่วมเมื่อ 15 ธ.ค. 2020
Dive deep into Data Structure and Algorithm with Zayeem! Get in touch for collaboration!
Delete the Middle Node of a Linked List - LeetCode 2095 - LinkedList - Leetcode 75 - Python
#python #leetcode #linkedlists #datastructuresandalgorithms
Leetcode 75
Delete the Middle Node of a Linked List - LeetCode 2095
Watch:
th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ
th-cam.com/play/PLtGxgZRjDlxV0ZQU14Q8FTQy1Bw_u44C0.html&si=58aAQevqoxwZMpWo
github : github.com/zayeemZaki/DataStructuresAndAlgorithms
portfolio : zayeemzaki.github.io/my-portfolio/
Leetcode 75
Delete the Middle Node of a Linked List - LeetCode 2095
Watch:
th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ
th-cam.com/play/PLtGxgZRjDlxV0ZQU14Q8FTQy1Bw_u44C0.html&si=58aAQevqoxwZMpWo
github : github.com/zayeemZaki/DataStructuresAndAlgorithms
portfolio : zayeemzaki.github.io/my-portfolio/
มุมมอง: 13
วีดีโอ
Dota2 Senate - LeetCode 649 - Queue - Leetcode 75 - Python
มุมมอง 3319 ชั่วโมงที่ผ่านมา
#python #leetcode #queues #datastructuresandalgorithms Leetcode 75 Dota2 Senate - LeetCode 649 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ th-cam.com/play/PLtGxgZRjDlxV0ZQU14Q8FTQy1Bw_u44C0.html&si=58aAQevqoxwZMpWo github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Number of Recent Calls - LeetCode 933 - Queue - Leetcode 75 - Python
มุมมอง 16วันที่ผ่านมา
#python #leetcode #queues #datastructuresandalgorithms Leetcode 75 Number of Recent Calls - LeetCode 933 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ th-cam.com/play/PLtGxgZRjDlxV0ZQU14Q8FTQy1Bw_u44C0.html&si=58aAQevqoxwZMpWo github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Decode String - LeetCode 394 - Stack - Leetcode 75 - Python
มุมมอง 32วันที่ผ่านมา
#python #leetcode #arrays #stack #datastructuresandalgorithms Leetcode 75 Decode String - LeetCode 394 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ th-cam.com/play/PLtGxgZRjDlxV0ZQU14Q8FTQy1Bw_u44C0.html&si=58aAQevqoxwZMpWo github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Asteroid Collision - LeetCode 735 - Stack - Leetcode 75 - Python
มุมมอง 3014 วันที่ผ่านมา
#python #leetcode #arrays #stack #datastructuresandalgorithms Leetcode 75 Asteroid Collision - LeetCode 735 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ th-cam.com/play/PLtGxgZRjDlxV0ZQU14Q8FTQy1Bw_u44C0.html&si=58aAQevqoxwZMpWo github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Removing Stars From a String - LeetCode 2390 - Stack - Leetcode 75 - Python
มุมมอง 11014 วันที่ผ่านมา
#python #leetcode #arrays #stack #datastructuresandalgorithms Leetcode 75 Removing Stars From a String - LeetCode 2390 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ th-cam.com/play/PLtGxgZRjDlxV0ZQU14Q8FTQy1Bw_u44C0.html&si=58aAQevqoxwZMpWo github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Equal Row and Column Pairs - LeetCode 2352 - array - Leetcode 75 - Python
มุมมอง 2821 วันที่ผ่านมา
#python #leetcode #arrays #array #datastructuresandalgorithms Leetcode 75 Equal Row and Column Pairs - LeetCode 2352 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ th-cam.com/play/PLtGxgZRjDlxV0ZQU14Q8FTQy1Bw_u44C0.html&si=58aAQevqoxwZMpWo github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Determine if Two Strings Are Close - LeetCode 1657 - Hash Map/Set - Leetcode 75 - Python
มุมมอง 3221 วันที่ผ่านมา
#python #leetcode #arrays #hashmap #set #datastructuresandalgorithms Leetcode 75 Determine if Two Strings Are Close - LeetCode 1657 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Unique Number of Occurrences - LeetCode 1207 - Hash Map/Set - Leetcode 75 - Python
มุมมอง 4028 วันที่ผ่านมา
#python #leetcode #arrays #hashmap #set #datastructuresandalgorithms Leetcode 75 Unique Number of Occurrences - LeetCode 1207 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Find the Difference of Two Arrays - LeetCode 2215 - Hash Map/Set - Leetcode 75 - Python
มุมมอง 32หลายเดือนก่อน
#python #leetcode #arrays #hashmap #set #datastructuresandalgorithms Leetcode 75 Find the Difference of Two Arrays - LeetCode 2215 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Find Pivot Index - LeetCode 724 - Prefix Sum - Leetcode 75 - Python
มุมมอง 19หลายเดือนก่อน
#python #leetcode #arrays #Prefixsum #datastructuresandalgorithmsinpython Leetcode 75 Find Pivot Index - LeetCode 724 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Find the Highest Altitude - LeetCode 1732 - Prefix Sum - Leetcode 75 - Python
มุมมอง 27หลายเดือนก่อน
#python #leetcode #arrays #Prefixsum #datastructuresandalgorithmsinpython Find the Highest Altitude - LeetCode 1732 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Binary Search in 3 min! | Python!
มุมมอง 44หลายเดือนก่อน
#python #binarysearch #arrays #datastructuresandalgorithmsinpython Watch this : th-cam.com/play/PLtGxgZRjDlxV0ZQU14Q8FTQy1Bw_u44C0.html&si=tfHUr5mYtRfWjLde github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Longest Subarray of 1's After Deleting One Element - 1493 - Sliding Window - Leetcode 75 - Python
มุมมอง 12หลายเดือนก่อน
#python #leetcode #arrays #slidingwindow Leetcode 75 MaxLongest Subarray of 1's After Deleting One Element - LeetCode 1493 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
Max Consecutive Ones III - LeetCode 1004 - Sliding Window - Leetcode 75 - Python - Arrays
มุมมอง 24หลายเดือนก่อน
#python #leetcode #arrays #slidingwindow Leetcode 75 Max Consecutive Ones III - LeetCode 1004 Watch this : th-cam.com/play/PLtGxgZRjDlxWhppPqi0qwufZTNQSkjnZq.html&si=A_mVK0FZQDH3m9BJ github : github.com/zayeemZaki/DataStructuresAndAlgorithms portfolio : zayeemzaki.github.io/my-portfolio/
LeetCode 1456 - Sliding Window - Leetcode 75 - Python - Arrays
มุมมอง 14หลายเดือนก่อน
LeetCode 1456 - Sliding Window - Leetcode 75 - Python - Arrays
Maximum Average Subarray I - 643 - Sliding Window - Leetcode 75 - Python - Arrays
มุมมอง 24หลายเดือนก่อน
Maximum Average Subarray I - 643 - Sliding Window - Leetcode 75 - Python - Arrays
Max Number of K-Sum Pairs - 1679 - Two Pointers - Arrays - Python - Leetcode 75
มุมมอง 69หลายเดือนก่อน
Max Number of K-Sum Pairs - 1679 - Two Pointers - Arrays - Python - Leetcode 75
Container With Most Water - 11 - Two Pointers - Arrays - Python - Leetcode 75
มุมมอง 59หลายเดือนก่อน
Container With Most Water - 11 - Two Pointers - Arrays - Python - Leetcode 75
Is Subsequence - 392 - Two Pointers - Arrays - Python - Leetcode 75
มุมมอง 66หลายเดือนก่อน
Is Subsequence - 392 - Two Pointers - Arrays - Python - Leetcode 75
Move Zeroes - 283 - Two Pointers - Arrays - Python - Leetcode 75
มุมมอง 76หลายเดือนก่อน
Move Zeroes - 283 - Two Pointers - Arrays - Python - Leetcode 75
String Compression - 443 - Arrays - Strings - Python - Leetcode 75
มุมมอง 72หลายเดือนก่อน
String Compression - 443 - Arrays - Strings - Python - Leetcode 75
Increasing Triplet Subsequence - 334 - Arrays - Python - Leetcode 75
มุมมอง 292 หลายเดือนก่อน
Increasing Triplet Subsequence - 334 - Arrays - Python - Leetcode 75
Product of Array Except Self - 238 - Arrays - Python - Leetcode 75
มุมมอง 472 หลายเดือนก่อน
Product of Array Except Self - 238 - Arrays - Python - Leetcode 75
Reverse Words in a String - 151 - Arrays - Strings - Python - Leetcode 75
มุมมอง 422 หลายเดือนก่อน
Reverse Words in a String - 151 - Arrays - Strings - Python - Leetcode 75
Reverse Vowels of a String - 345 - Arrays - Strings - Python - Leetcode 75
มุมมอง 372 หลายเดือนก่อน
Reverse Vowels of a String - 345 - Arrays - Strings - Python - Leetcode 75
Can Place Flowers - 605 - Arrays - Python - Leetcode 75
มุมมอง 372 หลายเดือนก่อน
Can Place Flowers - 605 - Arrays - Python - Leetcode 75
Kids With the Greatest Number of Candies - 1431 - Arrays - Python - Leetcode 75
มุมมอง 492 หลายเดือนก่อน
Kids With the Greatest Number of Candies - 1431 - Arrays - Python - Leetcode 75
Greatest Common Divisor of Strings - 1071 - Strings - Python - Leetcode 75
มุมมอง 542 หลายเดือนก่อน
Greatest Common Divisor of Strings - 1071 - Strings - Python - Leetcode 75
class Solution { public int compress(char[] chars) { int left =0; int right = 0; int k=0; int n= chars.length; while(right<n){ while(right<n && chars[right]==chars[left] ) { right++; } chars[k++]=chars[left]; int num= right-left; if (num > 1) { String countStr = Integer.toString(num); for (char c : countStr.toCharArray()) { chars[k++] = c; } } left=right; } return k; } }
class Solution { public boolean increasingTriplet(int[] nums) { if(nums.length<3) return false; int[] leftMin=new int[nums.length]; int[] rightMax=new int[nums.length]; int min=nums[0]; for(int i=0;i<nums.length;i++){ min=Math.min(nums[i],min); leftMin[i]=min; } int max=nums[nums.length-1]; for(int i=nums.length-1;i>=0;i--){ max=Math.max(nums[i],max); rightMax[i]=max; } for(int i=0;i<nums.length;i++){ if(leftMin[i]<nums[i] && nums[i]<rightMax[i]) return true; } return false; } }
class Solution { public String mergeAlternately(String word1, String word2) { int i=0,j=0; StringBuilder st= new StringBuilder(); while(i<word1.length() && j<word2.length()){ st.append(word1.charAt(i++)); st.append(word2.charAt(j++)); } while(i<word1.length()){ st.append(word1.charAt(i++)); } while(j<word2.length()){ st.append(word2.charAt(j++)); } return st.toString(); } }
👍
Nice Question !! class Solution { public boolean closeStrings(String word1, String word2) { if(word1.length()!=word2.length()) return false; int[] f1=new int[26]; int[] f2=new int[26]; for(int i=0;i<word1.length();i++){ f1[word1.charAt(i)-'a']++; } for(int i=0;i<word2.length();i++){ f2[word2.charAt(i)-'a']++; } // need to check that char in f1 and f2 must match for(int i=0;i<26;i++){ if(f1[i]==f2[i]) continue; if(f1[i]!=0 && f2[i]==0) return false; if(f1[i]==0 && f2[i]!=0) return false; } Arrays.sort(f1); Arrays.sort(f2); for(int i=0;i<26;i++){ if(f1[i]!=f2[i]) return false; } return true; } }
Keep it up buddy!! 👍 I am following you for blind 75 problems 👍
Thank you!
Hi, can you explain why freq[n] is += 1? Having the equal sign would not bar whether more than 1 digit/string was to occur more than once. But freq[n] += 0 wouldn't really be logical. I really appreciate this. I'm just starting my sophmore year so still a ways to go, but I've heard of the LeetCode a lot.
@@toxicblondi Hi! Great question! The freq[n] += 1 is used to increment the frequency count of the element n in the hashmap freq, which can also be written as freq[n] = freq[n] + 1. This means that every time n appears, its count increases by 1. If we used += 0, it wouldn’t actually increase the count, so it wouldn’t help us track the number of occurrences. I hope that clears things up! Good luck with your sophomore year and LeetCode journey-it's a great way to build your problem-solving skills!
Appreciated 👍👍. More success to you mate.
Thank you!
Thanks for providing such valuable content. Your teaching style makes learning easier and more interesting.
Thank you! I appreciate your feedback
The way you break down complex concepts is amazing. This video was exactly what I needed.
Thank you! I am glad this video was useful to you!
Thanks
i tried to read this topic from multiple teachers but ended up here . best video🙌🙌🙌
@@ZoyaWani-pt5zr Thank you!