![CodingForFAANGJobs](/img/default-banner.jpg)
- 80
- 3 916
CodingForFAANGJobs
United States
Registrace 9. 02. 2023
Welcome to my channel !
I intend to help developers preparing for a Programming interview in big tech companies like Facebook, Microsoft, Apple, Amazon, Netflix or Google. I will be posting videos regularly with tips to solve questions as well as solution to commonly asked questions. Please watch and leave comments!
About!
I am a Software Engineer. I have been working in this field for around 12 years. I enjoy coding and problem solving. I created this channel for Software Developers who want to improve their coding/problem solving skills. I have also worked as an interviewer for a big tech company and I encountered several talented engineer who are unable to succeed in a coding interview from big tech companies like Google, Microsoft or Amazon. I hope this will help them to secure a position.
I intend to help developers preparing for a Programming interview in big tech companies like Facebook, Microsoft, Apple, Amazon, Netflix or Google. I will be posting videos regularly with tips to solve questions as well as solution to commonly asked questions. Please watch and leave comments!
About!
I am a Software Engineer. I have been working in this field for around 12 years. I enjoy coding and problem solving. I created this channel for Software Developers who want to improve their coding/problem solving skills. I have also worked as an interviewer for a big tech company and I encountered several talented engineer who are unable to succeed in a coding interview from big tech companies like Google, Microsoft or Amazon. I hope this will help them to secure a position.
Leetcode Problem - Lexicographically Smallest String With Constraint | Java | O(N) Solution
Problem: leetcode.com/problems/lexicographically-smallest-string-after-operations-with-constraint/
Solution: github.com/jebransyed/leetcode/blob/main/3106LexicSmallestString.java
Solution for Leetcode Problem - 3106. Lexicographically Smallest String After Operations With Constraint
Solution: github.com/jebransyed/leetcode/blob/main/3106LexicSmallestString.java
Solution for Leetcode Problem - 3106. Lexicographically Smallest String After Operations With Constraint
zhlédnutí: 46
Video
Leetcode Problem - Clone Graph | Java | O(N) Solution
zhlédnutí 33Před měsícem
Problem: leetcode.com/problems/clone-graph/description/ Solution: github.com/jebransyed/leetcode/blob/main/CloneGraphs.java Solution for Leetcode Problem - Clone Graph
Leetcode Problem - Power of Three | Java | log(N) Solution
zhlédnutí 66Před 5 měsíci
Problem: leetcode.com/problems/power-of-three/description/. Solution: github.com/jebransyed/leetcode/blob/main/PowerOfThree.java. Solution for Leetcode Problem - Power of Three Isolated by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. creativecommons.org/licenses/by/4.0/ Source: incompetech.com/music/royalty-free/index.html?isrc=USUAN1100792 Artist: incompetech.com/
Google Programming Interview Question | Diameter of Binary Tree | Java | Recursion
zhlédnutí 21Před 5 měsíci
Problem: leetcode.com/problems/diameter-of-binary-tree/description/ Solution: github.com/jebransyed/leetcode/blob/main/DiameterBinaryTree.java Google coding interview question using Recursion.
Google Programming Interview Question |Find Minimum in Rotated Sorted Array | Java | O(logN) sol.
zhlédnutí 255Před 6 měsíci
Problem: leetcode.com/problems/find-minimum-in-rotated-sorted-array/description/ Solution: github.com/jebransyed/leetcode/blob/main/MinimumRotatedArray.java Google coding interview question.
Microsoft Programming interview Question | Search a 2D Matrix | Java | Olog(m*n) Solution
zhlédnutí 162Před 6 měsíci
Problem: leetcode.com/problems/search-a-2d-matrix/ Solution: github.com/jebransyed/leetcode/blob/main/Search2DMatrix.java Programming interview question asked by Microsoft
Leetcode Problem - N Queens | Java | Backtracking
zhlédnutí 193Před 7 měsíci
Solution for Leetcode Problem - N Queens using Recursion & Backtracking Problem: leetcode.com/problems/n-queens/description/ Solution: github.com/jebransyed/leetcode/blob/main/NQueens.java
Google Phone interview Question | Implement Trie (Prefix Tree) | Java
zhlédnutí 31Před 9 měsíci
Problem: leetcode.com/problems/implement-trie-prefix-tree/ Solution: github.com/jebransyed/leetcode/blob/main/Trie.java Google phone interview question.
Facebook Programming Interview Question | Set Matrix Zeroes | Java | O(1) Space Complexity
zhlédnutí 37Před 9 měsíci
Problem: leetcode.com/problems/set-matrix-zeroes/description/ Solution: github.com/jebransyed/leetcode/blob/main/SetMAtrixZeros.java Solution for Facebook Coding interview question in O(m n) and O(1) Space complexity.
Microsoft Programming interview Question | Rotate Image | Java | O(n) Solution
zhlédnutí 62Před 10 měsíci
Leetcode problem - leetcode.com/problems/rotate-image/description/ Solution - github.com/jebransyed/leetcode/blob/main/RotateImage.java Programming interview question asked by Microsoft
Google Phone interview Question | Intersection of Two Arrays | Java | O(n) Solution
zhlédnutí 56Před 11 měsíci
Problem: leetcode.com/problems/intersection-of-two-arrays/description/ Solution: github.com/jebransyed/leetcode/blob/main/IntersectionOfTwoArrays.java Google phone interview question.
Google Programming Interview Question | Battleships in a Board | Java | O(N) solution
zhlédnutí 177Před 11 měsíci
Problem: leetcode.com/problems/battleships-in-a-board/description/ Solution: github.com/jebransyed/leetcode/blob/main/LargestValuesFromLabels.java Google coding interview question. This problem is very similar to Count Number of Islands, except that since ships will be a straight line it can be solved in linear time czcams.com/video/gQCCmks0oCs/video.html
Google Programming Interview Question | Largest Values From Labels | Java | O(nlogN) solution
zhlédnutí 72Před rokem
Problem: leetcode.com/problems/largest-values-from-labels/description/ Solution: github.com/jebransyed/leetcode/blob/main/LargestValuesFromLabels.java Google coding interview question. This problem can be solved in O(nlogN) time using Max Heap.
Google Programming Interview Question | Longest Consecutive Sequence | Java | O(n) solution
zhlédnutí 59Před rokem
Problem: leetcode.com/problems/longest-consecutive-sequence/description/ Solution: github.com/jebransyed/leetcode/blob/main/LongestConsecutiveSequence.java Google coding interview question. This problem can be solved in O(n) time using HashSet.
Facebook Programming Interview Question | Partition Equal Subset Sum | Recursion & Dynamic Prog
zhlédnutí 91Před rokem
Problem: leetcode.com/problems/partition-equal-subset-sum/description/ Solution: github.com/jebransyed/leetcode/blob/main/PartitionEqualSubsetSum.java Solution for Facebook Coding interview question using Recursion, Memoization and Dynamic Programming
Amazon Programming Interview Question | Rotting Oranges | Java
zhlédnutí 69Před rokem
Amazon Programming Interview Question | Rotting Oranges | Java
Google Interview Question | Longest Common Subsequence | Java | Recursion and Dynamic Programming
zhlédnutí 58Před rokem
Google Interview Question | Longest Common Subsequence | Java | Recursion and Dynamic Programming
Amazon Programming Interview Question | Binary Tree Paths | Java | DFS Solution
zhlédnutí 47Před rokem
Amazon Programming Interview Question | Binary Tree Paths | Java | DFS Solution
Google Programming Phone interview Question | Max Area of Island | Java | Recursion
zhlédnutí 69Před rokem
Google Programming Phone interview Question | Max Area of Island | Java | Recursion
Facebook Programming Interview Question | Validate Binary Search Tree | Recursion
zhlédnutí 93Před rokem
Facebook Programming Interview Question | Validate Binary Search Tree | Recursion
Facebook Programming Interview Question | Kth Smallest Element in a BST | Recursion
zhlédnutí 34Před rokem
Facebook Programming Interview Question | Kth Smallest Element in a BST | Recursion
Amazon Programming Interview Question | K Closest Points to Origin | Java | Min-Heap Solution
zhlédnutí 146Před rokem
Amazon Programming Interview Question | K Closest Points to Origin | Java | Min-Heap Solution
Amazon/Google/Microsoft Phone interview Question | Lowest Common Ancestor of BST | O(log n) Solution
zhlédnutí 15Před rokem
Amazon/Google/Microsoft Phone interview Question | Lowest Common Ancestor of BST | O(log n) Solution
Amazon Programming Interview Question | Minimum Path Sum | Java | Recursion and Dynamic Programming
zhlédnutí 82Před rokem
Amazon Programming Interview Question | Minimum Path Sum | Java | Recursion and Dynamic Programming
Facebook Programming Interview Question | Task Scheduler | Greedy Algorithm
zhlédnutí 48Před rokem
Facebook Programming Interview Question | Task Scheduler | Greedy Algorithm
Google Programming Interview Question | Frog Jump | Java
zhlédnutí 108Před rokem
Google Programming Interview Question | Frog Jump | Java
Amazon Programming Interview Question | Longest Common Prefix | Java | O(n*k) Solution
zhlédnutí 59Před rokem
Amazon Programming Interview Question | Longest Common Prefix | Java | O(n*k) Solution
Facebook Phone Interview Question | Valid Parentheses | Java | O(n) solution using Stack
zhlédnutí 45Před rokem
Facebook Phone Interview Question | Valid Parentheses | Java | O(n) solution using Stack
Amazon Programming Interview Question | Group Anagrams | Java | O(n*k(log k)) Solution
zhlédnutí 94Před rokem
Amazon Programming Interview Question | Group Anagrams | Java | O(n*k(log k)) Solution
Amazon Programming Interview Question | Most Common Word | Java | O(n) Solution
zhlédnutí 56Před rokem
Amazon Programming Interview Question | Most Common Word | Java | O(n) Solution
Time Complexity: O(n) Space Complexity: O(n) n -> number of characters in the string
Time Complexity: O(n) Space Complexity: O(n) n -> number of nodes in the graph
Time Complexity: O(log N) Space Complexity: O(1) N -> Input
Time Complexity: O(n) Space Complexity: O(n) n -> Number of nodes in the tree
Time Complexity: O(log N) Space Complexity: O(1)
Why don't you just use like search target by using while loop or by for loop by iteration and return true if present and else false
Got it we doin thay for complexities
Yes for FAANG companies they will insist on logarithmic solution even for SDE I role@@arshiyanx
@@codingForFAANG yes yes but how one can go for optimal solution should start with our logic then Go for optimal?
A good interviewer will guide you towards looking for a logarithmic solution. But i have seen cases where no guidance was given. The general rule is look for a logarithmic solution whenever the data is sorted. My advice is to take your time before starting to code and discuss the solution with the interviewer. After he is satisfied with the logic then go ahead @@arshiyanx
@@codingForFAANG yeah that's great 👍❤️
Time Complexity: O(log(m*n)) Space Complexity: O(1)
Detailed explanation - czcams.com/video/xFv_Hl4B83A/video.html
Time Complexity: O(n) n is the length of the word to be searched/inserted Space Complexity: O(m) m is the number of unique words that need to be saved
Time Complexity: O(m+n) Space Complexity: O(1) m is the number of rows, n is the number of columns in the matrix
Time Complexity: O(n) Space Complexity: O(1) n is the number of elements in the matrix
Time Complexity: O(n) Space Complexity: O(n)
🤭 "promosm"
Very primitive and effective approach. Thank you for the video
Time Complexity: O(N) Space Complexity: O(1)
Time Complexity: O(nlogN) Space Complexity: O(n)
Time Complexity: O(n) Space. Complexity: O(n)
Interesting
Let me know if there is an easier solution
Longest videoI have created :) Time Complexity: O(n*m) n is the number of elements in the array, m is the sum of elements in array Space Complexity O(n*m) since we are creating a 2-D to save our results
Time Complexity: O(n^2) Space Complexity O(1)
For a more detailed solution, see czcams.com/video/sSno9rV8Rhg/video.html
Time Complexity: O(n) Space Complexity: O(n)
thanks for the video, keep the good work!
Thank You!
Sorry for the bad audio. :( Will try to fix it in the next upload
"promosm" 😒
السلام عليكم ورحمة الله وبركاته.. شكرا على المجهود الرائع الذي تبذله في هذه القناة.. اردت أن اسأل: هل من الممكن أن نستخدم البحث الثنائي للبحث عن عدد الذي عند قسمة عدد آخر معلوم عليه يكون باقي القسمه يساوي صفر؟ و ماهو معيار الانتقال بين الاعداد التي نختارها لذلك؟ ارجو الرد رجاءا.. شكرا جزيلا.
Thank you! Peace be on you too. Can you please post your question in English as I cant speak Arabic and Google translate is doing a bad job.
@@codingForFAANG May the peace, blessings, and mercy of God be upon you.. Thanks for the great work you do on this channel. I wanted to ask: Is it possible to use binary search to search for a number in which, when dividing by another known number, the remainder of the division is equal to zero? And what is the criterion for moving between the numbers that we choose for that? Please reply please.. Thank you very much
Binary search algorithm is used to search for numbers in a sorted array. It takes advantage of the fact that since the array is sorted we can cut the area to search by half each time. It works by finding the midpoint and based on whether the target is greater or lesser than the mid point, we divide the area to process the search. Consider array - [10, 14, 26, 27, 31, 33, 44], and we are trying to search for 33, binary search will work as follows Step 1: Find midpoint. For given array low index = 0, high index= 7. (0 + 7)/2 = 3 (we round to the nearest integer) Step 2: find value of mid, In the array value saved at index 3 is 27 Step 3: Compare with target, since 31 is greater than 27, then target is saved in the right half of the array. Step 4: We set low index = 4(mid + 1), high index = 7. Step 5 We repeat again from Step 1 See www.khanacademy.org/computing/computer-science/algorithms/binary-search/a/binary-search for more details. Hope that helps.
@@codingForFAANG thank you very very much for your help and support.
@@Mmmoijj No problem Happy to help
THE VOICE IS TOO LOW
Yes, earlier I used Quick Time player to record my videos. I did not realize that the volume was being lowered after youtube upload. I have started using iMovie to adjust the sound now. Moving forward it will be fine.
keep going sir
Thank you 😃
Hey, I've been watching you for a while. What's the best way to start leet code as a beginner in problem-solving?
Hi, Thanks for watching! I started by solving the Easy problems with the highest acceptance rate. I like to use filters that are present in the leetcode search (eg) Top 100 Liked Questions. They cover a wide range of algorithms. Link - leetcode.com/problemset/algorithms/?sorting=W3sic29ydE9yZGVyIjoiREVTQ0VORElORyIsIm9yZGVyQnkiOiJBQ19SQVRFIn1d&difficulty=EASY&page=1&listId=79h8rn6 I started by solving 2-3 Easy problems a day to get into the groove. Later I started focussing on Medium/Hard questions that get asked during coding interviews. Hope that helps!
@@codingForFAANG Thanks that helps. Just wanted to know where is the best place to learn algorithm and data structures. Before going to leet code.
@@abdirahmanahmed2472 I recommend the following books 1. Cracking the Coding Interview www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850/ You should find a copy of this book in any library 2. Data Structures and Problem Solving www.amazon.com/Data-Structures-Problem-Solving-Using/dp/0321541405/ This was the recommended book by my university
BigInteger[] bi = new BigInteger[nums.length]; for (int i = 0; i<nums.length; i++){ bi[i] = new BigInteger(nums[i]); } Arrays.sort(bi); return bi[bi.length-k].toString();
Thanks! Yes that solution works too. I avoid Arrays.sort() Collections.sort() in my solutions since worst case time complexity can be O(n^2).