![Fisher Coder](/img/default-banner.jpg)
- 182
- 761 884
Fisher Coder
United States
Registrace 19. 08. 2016
Hello World!
I'm a software engineer working in Silicon Valley since early 2015 and an alumnus of the University of Minnesota - Twin Cities.
I talk about software engineering, life in Silicon Valley and my travel.
My ENTIRE Programming Equipment and Computer Science Bookshelf: www.amazon.com/shop/fishercoder
Hit me up with great topics you want to see on this channel as well as any feedback you might have.
Please subscribe to this channel, watch videos and leave comments so that we could learn from each other!
#softwareengineering #leetcode #coding #interview #fishercoder #SDE #SWE #SiliconValley #programming
I'm a software engineer working in Silicon Valley since early 2015 and an alumnus of the University of Minnesota - Twin Cities.
I talk about software engineering, life in Silicon Valley and my travel.
My ENTIRE Programming Equipment and Computer Science Bookshelf: www.amazon.com/shop/fishercoder
Hit me up with great topics you want to see on this channel as well as any feedback you might have.
Please subscribe to this channel, watch videos and leave comments so that we could learn from each other!
#softwareengineering #leetcode #coding #interview #fishercoder #SDE #SWE #SiliconValley #programming
How I passed AWS Solutions Architect - Professional Exam Again | Re-certified - AWS Ep 12
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20
Thoughts and tips after passing AWS Solutions Architect - Professional Exam Again after three years.
⭐ Support my channel and connect with me:
czcams.com/channels/PL5uAbYQ40HwAdOe4ikI0w.htmljoin
See how I passed other AWS Certificate Exams here: czcams.com/play/PLK0ZC7fyo01IBhit29klrSjuIdH4TotsL.html
// TOOLS THAT I USE:
○ Memory Foam Set Keyboard Wrist Rest Pad - amzn.to/3cOGOAj
○ Electric Height Adjustable Standing Desk - amzn.to/2S9YexJ
○ Apple Magic Keyboard (Wireless, Rechargable) - amzn.to/36gy5FJ
○ Apple Magic Trackpad 2 (Wireless, Rechargable) - amzn.to/36ltimu
○ Apple MacBook Pro - amzn.to/30iSvKE
○ All-In One Printer - amzn.to/34etmSi
○ Apple AirPods Pro - amzn.to/2GpVYQf
○ My new favorite Apple Watch - amzn.to/2EIIUFd
// MY FAVORITE BOOKS:
○ Introduction to Algorithms - amzn.to/36hxHXD
○ Designing Data-Intensive Applications - amzn.to/2S7snOg
○ Head First Java - amzn.to/2ScLDKa
○ Design Patterns - amzn.to/2SaGeU2
Support me on Patreon: www.patreon.com/fishercoder
My ENTIRE Programming Equipment and Computer Science Bookshelf:
www.amazon.com/shop/fishercoder
And make sure you subscribe to my channel before you go!
#solutionsarchitectprofessional #awssap #amazonwebservices #aws #certification #cloudcomputing #softwareengineering #coding #interview #SDE #SWE #SiliconValley #programming #datastructures #whizlabs #certificate #exams #sysops #leetcode #algorithms #amazonwebservicestutorials
Thoughts and tips after passing AWS Solutions Architect - Professional Exam Again after three years.
⭐ Support my channel and connect with me:
czcams.com/channels/PL5uAbYQ40HwAdOe4ikI0w.htmljoin
See how I passed other AWS Certificate Exams here: czcams.com/play/PLK0ZC7fyo01IBhit29klrSjuIdH4TotsL.html
// TOOLS THAT I USE:
○ Memory Foam Set Keyboard Wrist Rest Pad - amzn.to/3cOGOAj
○ Electric Height Adjustable Standing Desk - amzn.to/2S9YexJ
○ Apple Magic Keyboard (Wireless, Rechargable) - amzn.to/36gy5FJ
○ Apple Magic Trackpad 2 (Wireless, Rechargable) - amzn.to/36ltimu
○ Apple MacBook Pro - amzn.to/30iSvKE
○ All-In One Printer - amzn.to/34etmSi
○ Apple AirPods Pro - amzn.to/2GpVYQf
○ My new favorite Apple Watch - amzn.to/2EIIUFd
// MY FAVORITE BOOKS:
○ Introduction to Algorithms - amzn.to/36hxHXD
○ Designing Data-Intensive Applications - amzn.to/2S7snOg
○ Head First Java - amzn.to/2ScLDKa
○ Design Patterns - amzn.to/2SaGeU2
Support me on Patreon: www.patreon.com/fishercoder
My ENTIRE Programming Equipment and Computer Science Bookshelf:
www.amazon.com/shop/fishercoder
And make sure you subscribe to my channel before you go!
#solutionsarchitectprofessional #awssap #amazonwebservices #aws #certification #cloudcomputing #softwareengineering #coding #interview #SDE #SWE #SiliconValley #programming #datastructures #whizlabs #certificate #exams #sysops #leetcode #algorithms #amazonwebservicestutorials
zhlédnutí: 1 669
Video
LeetCode 2716. Minimize String Length - Interview Prep Ep 142
zhlédnutí 931Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 Problem link on LeetCode 2716. Minimize String Length: leetcode.com/problems/minimize-string-length/description/ Solution on Github: github.com/fishercoder1534/Leetcode/blob/master/src/main/java/com/fishercoder/solutions/_2716.java ⭐ Become a member: czcams.com/channels/PL5uAbYQ40HwAdOe4ikI0w.htmljoin // TOOLS THAT I USE: ○ Me...
LeetCode 2696. Minimum String Length After Removing Substrings - Interview Prep Ep 141
zhlédnutí 788Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 Problem link on LeetCode 2696. Minimum String Length After Removing Substrings: leetcode.com/problems/minimum-string-length-after-removing-substrings/description/ Solution on Github: github.com/fishercoder1534/Leetcode/blob/master/src/main/java/com/fishercoder/solutions/_2696.java ⭐ Become a member: czcams.com/channels/PL5uAbY...
LeetCode 2670. Find the Distinct Difference Array - Interview Prep Ep 140
zhlédnutí 517Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 Problem link on LeetCode 2670. Find the Distinct Difference Array: leetcode.com/problems/find-the-distinct-difference-array/ Solution on Github: github.com/fishercoder1534/Leetcode/blob/master/src/main/java/com/fishercoder/solutions/_2670.java ⭐ Become a member: czcams.com/channels/PL5uAbYQ40HwAdOe4ikI0w.htmljoin // TOOLS THAT...
LeetCode 2596. Check Knight Tour Configuration - Interview Prep Ep 139
zhlédnutí 562Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 2596. Check Knight Tour Configuration: leetcode.com/problems/check-knight-tour-configuration/des...
LeetCode 876. Middle of the Linked List - Interview Prep Ep 138
zhlédnutí 531Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 876. Middle of the Linked List: leetcode.com/problems/middle-of-the-linked-list/description/ Sol...
LeetCode 235. Lowest Common Ancestor of a Binary Search Tree - Interview Prep Ep 137
zhlédnutí 570Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 235. Lowest Common Ancestor of a Binary Search Tree: leetcode.com/problems/lowest-common-ancesto...
LeetCode 704. Binary Search - Interview Prep Ep 136
zhlédnutí 510Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 704. Binary Search: leetcode.com/problems/binary-search/description/ Solution on Github: github....
LeetCode 242. Valid Anagram - Interview Prep Ep 135
zhlédnutí 1,8KPřed rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 242. Valid Anagram: leetcode.com/problems/valid-anagram/description/ Solution on Github: github....
LeetCode 125. Valid Palindrome - Interview Prep Ep 134
zhlédnutí 648Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 125: Valid Palindrome: leetcode.com/problems/valid-palindrome/description/ Solution on Github: g...
LeetCode 2544. Alternating Digit Sum - Interview Prep Ep 133
zhlédnutí 460Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 2544. Alternating Digit Sum: leetcode.com/problems/alternating-digit-sum/description/ Solution o...
LeetCode 57. Insert Interval - Interview Prep Ep 132
zhlédnutí 1,3KPřed rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 57. Insert Interval: leetcode.com/problems/insert-interval/description/ Solution on Github: gith...
LeetCode 2433. Find The Original Array of Prefix Xor - Interview Prep Ep 131
zhlédnutí 1,2KPřed rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 2433. Find The Original Array of Prefix Xor: leetcode.com/problems/find-the-original-array-of-pr...
LeetCode 1061. Lexicographically Smallest Equivalent String - Interview Prep Ep 130
zhlédnutí 930Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 1061. Lexicographically Smallest Equivalent String: leetcode.com/problems/lexicographically-smal...
LeetCode 2525. Categorize Box According to Criteria - Interview Prep Ep 129
zhlédnutí 252Před rokem
⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercoder0f-20 ⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id=15&aff_id=82405&url_id=902 ⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id=488&aff_id=82405&url_id=9356 Problem link on LeetCode 2525. Categorize Box According to Criteria: leetcode.com/problems/categorize-box-according-to-cr...
LeetCode 2530. Maximal Score After Applying K Operations - Interview Prep Ep 128
zhlédnutí 327Před rokem
LeetCode 2530. Maximal Score After Applying K Operations - Interview Prep Ep 128
LeetCode 2529. Maximum Count of Positive Integer and Negative Integer - Interview Prep Ep 127
zhlédnutí 1,6KPřed rokem
LeetCode 2529. Maximum Count of Positive Integer and Negative Integer - Interview Prep Ep 127
LeetCode 2235. Add Two Integers - Interview Prep Ep 126 #shorts
zhlédnutí 342Před rokem
LeetCode 2235. Add Two Integers - Interview Prep Ep 126 #shorts
LeetCode 2515. Shortest Distance to Target String in a Circular Array - Interview Prep Ep 125
zhlédnutí 391Před rokem
LeetCode 2515. Shortest Distance to Target String in a Circular Array - Interview Prep Ep 125
LeetCode 2520. Count the Digits That Divide a Number - Interview Prep Ep 124
zhlédnutí 419Před rokem
LeetCode 2520. Count the Digits That Divide a Number - Interview Prep Ep 124
LeetCode 1910. Remove All Occurrences of a Substring - Interview Prep Ep 123
zhlédnutí 7KPřed 3 lety
LeetCode 1910. Remove All Occurrences of a Substring - Interview Prep Ep 123
LeetCode 1903. Largest Odd Number in String - Interview Prep Ep 122
zhlédnutí 3,2KPřed 3 lety
LeetCode 1903. Largest Odd Number in String - Interview Prep Ep 122
LeetCode 1861. Rotating the Box - Interview Prep Ep 121
zhlédnutí 4,6KPřed 3 lety
LeetCode 1861. Rotating the Box - Interview Prep Ep 121
LeetCode 1828. Queries on Number of Points Inside a Circle - Interview Prep Ep 120
zhlédnutí 2,9KPřed 3 lety
LeetCode 1828. Queries on Number of Points Inside a Circle - Interview Prep Ep 120
LeetCode 1813. Sentence Similarity III - Interview Prep Ep 119
zhlédnutí 1,7KPřed 3 lety
LeetCode 1813. Sentence Similarity III - Interview Prep Ep 119
LeetCode 1772. Sort Features by Popularity - Interview Prep Ep 118
zhlédnutí 879Před 3 lety
LeetCode 1772. Sort Features by Popularity - Interview Prep Ep 118
LeetCode 1726. Tuple with Same Product - Interview Prep Ep 117
zhlédnutí 818Před 3 lety
LeetCode 1726. Tuple with Same Product - Interview Prep Ep 117
LeetCode 1733. Minimum Number of People to Teach - Interview Prep Ep 116
zhlédnutí 1KPřed 3 lety
LeetCode 1733. Minimum Number of People to Teach - Interview Prep Ep 116
LeetCode 1717. Maximum Score From Removing Substrings - Interview Prep Ep 115
zhlédnutí 2,1KPřed 3 lety
LeetCode 1717. Maximum Score From Removing Substrings - Interview Prep Ep 115
LeetCode 1641. Count Sorted Vowel Strings - Interview Prep Ep 114
zhlédnutí 2,2KPřed 3 lety
LeetCode 1641. Count Sorted Vowel Strings - Interview Prep Ep 114
simply amazing man!
java.lang.NullPointerException: Cannot invoke "java.util.TreeMap.floorKey(Object)" because "<local3>" is null at line 19, TimeMap.get at line 71, __Driver__.__helperSelectMethod__ at line 91, __Driver__.__helper__ at line 112, __Driver__.main Can you help me resolve this ?
glad to have found your channel
Very clear explanation
perfect
you explain thing very nicely.
very well explained man all my doubts are clear now regarding this problem
Glad to hear that! Cheers!
Nicee explanation! Thank you
Glad this helps, cheers!
0 sec ..
Is there a way to solve this at linear time if we use a hashmap?
Excellent explanation, thanks.
Glad it was helpful!
int maxDepth(TreeNode* root) { int maxDepth = 0; // Initialize the maximum depth int count = 0; // Initialize the current depth counter dfs(root, count, maxDepth); return maxDepth; } private: void dfs(TreeNode* node, int count, int &maxDepth) { if (node == NULL) return; count++; // Increment counter to reflect current depth if (count > maxDepth) { maxDepth = count; // Update maximum depth } dfs(node->left, count, maxDepth); dfs(node->right, count, maxDepth); } }; brother this code works but i cant understand how every recursion call maintain its own count variable
this is linear search approach, try binary search
Hey Fisher, thanks for the video, quick one .. why do keep assigning the list in line "19 and 20".. can't you simply run it without assigning the list?
Great approach sir !
I loved the explanation. The thing is I can understand from he code, but I cannot understand and then code. How to think in a way to write code not read the code? Any tips especially for recursion?
Excellent logic. Super easy. Didn't think this way. Thanks a lot!
Thank you for sharing and explaining the video. If possible, please also share time and space complexity at the end. I think based on above solution it should be as below but please correct it if it is incorrect. Time complexity: For creating the map, if the number of users are m and maximum number of language spoken by a user is n. The time complexity is O(mn) If total Friendships are k , then creating the boolean array is O(kn) If there are l languages, we are iterating l times * number of friendships k times. O(lk) Total time complexity is O(mn)+O(kn)+O(lk) Space complexity: For creating the map, if the number of users are m and maximum number of language spoken by a user is n. The space complexity is O(mn) If total Friendships are k , then space complexity of boolean array is O(k) The size of teach set at the end cannot be more than that of number of users m thus space complexity is O(m) Total space complexity is O(mn)+O(k)+O(m) which will be equal to O(m*n) as we can drop the other smaller k and m.
thanks!!!!
Amazing!!!!!
great concept
You are a god among men.
This is by far the best explanation I've seen on this problem.
Glad it was helpful!
You made it look so easy. Though It took a few minutes to understand the find method but the overall approach is pretty simple and I have easily replicate that
Glad it was helpful!
I don't think you've added enough #fishercode tags in your video.
beautiful! thank you!
Glad you like it!
I've implemented even a faster solution pastebin ref -> 1yPw0SSG
private bool IsBreakableIntoMultiple(string word) { var dp = new bool[word.Length + 1]; var len = word.Length; dp[^1] = true; for (int j = len; j > 0; j--) { for (int i = 0; i < j; i++) { // if (i + j > maxWordInDic) // { // continue // } var checkWord = word.Substring(i, j - i); if (dp[j] && Dictionary.Contains(checkWord)) { dp[i] = true; j = i + 1; // +1 since loop will j-- break; } } } return dp[0]; }
Why make a video, if you only have the Brute Force Approach to Discuss
lol rly same code for all problems
Thank you sir.....it took me a while to understand your explanation but now it's finally clear!!
Glad to hear that
Any one also getting exception?
Was using c# in c# substring needs to s.Substring(i, j-i)
Nice man, other youtube videos just write the recursive answer without really explaining it. But you can explain it in a simple way
Glad it helped
🧠
Why in the code you increment j until it reaches i and only then increment i, but in the presentation you increment i first and then at some unclear point you increment j?
Best visualization out there. Thanks
Guy, great explanation with code and graph!!! thank you, keep going.
Glad you liked it!
In line 8, can't we just create the treemap as a new TreeMap, why do we equal it to "map.get(username[i])"? We are already mapping it with username, the newly created tree map at line 10 while putting it into the map.
Sir will u come back to CZcams again
Amazing content, thank you!
Glad it was helpful!
Thanks but your code not passed successsfully if you not add last line like this complete Query is: # Write your MySQL query statement below SELECT s.student_id, s.student_name, sub.subject_name, COUNT(e.subject_name) AS attended_exams FROM Students s JOIN Subjects AS sub LEFT JOIN Examinations e ON s.student_id=e.student_id AND sub.subject_name = e.subject_name GROUP BY s.student_id, sub.subject_name ORDER BY s.student_id, sub.subject_name;
i don't understand your explanation, why are you incrementing i before j? j is nested inside the i loop but you started by looping through i before j??
If you set a few breakpoints and walkthrough the code, you'll have a better sense of the code. Good luck!
recently got asked with this problem i used a similar approach (almost identical)
which company?
Nice explanation, thanks👍
Glad it was helpful!
one of the most optimized approch thanks bro
You're welcome!
Give important topics leetcode bro give question sheet
SELECT a.student_id, a.student_name, b.subject_name, COUNT(c.subject_name) AS attended_exams FROM Students as a JOIN Subjects as b LEFT JOIN Examinations as c ON a.student_id = c.student_id AND b.subject_name = c.subject_name GROUP BY a.student_id, b.subject_name ORDER BY a.student_id, b.subject_name
Can someone explain why there are two lines of stack.pop() 😭 I understood first one but not second
you way of explanation is good
Glad it was helpful!
QUESTION: using set instead of map may has some issues. what if there is two duplicate in the sliding window and one is just about to be outside the window and needed to be removed. we cannot set.remove(e), since another one may be still in the window
Goated video. The helper function makes it similar to the iterative solution and now this way sticks in my mind 😃
Glad it helped!