Grokking-the-Coding-Interview-Patterns-for-Coding-Questions
Grokking-the-Coding-Interview-Patterns-for-Coding-Questions copied to clipboard
Grokking the Coding Interview: Patterns for Coding Questions Alternative
I just fixed the grammar in `README.md` for the **sliding window** pattern. Also, thankyou for taking the time to consolidate this awesome resource!
File: https://github.com/dipjul/Grokking-the-Coding-Interview-Patterns-for-Coding-Questions/blame/master/1.-pattern-sliding-window/1.2-smallest-subarray-with-a-given-sum-easy.md#L61 In line no: 61 it should be ``` minLen = Math.min(minLen, windowSize - windowStart + 1); ``` instead of ``` minLen = Math.min(minLen, windowEnd - windowStart + 1);...
class Solution { public int[] twoSum(int[] nums, int target) { int[] copyArray = Arrays.copyOf(nums, nums.length); Arrays.sort(copyArray); int i=0, j=copyArray.length-1; int[] arr= new int[2]; int num1=0, num2=0; while(i target) j--; else...
Hi, This is a very good initiative and finding very helpful. Do you have any plans to continue to expand the notes of other patterns as well? I see the...
https://dvpr.gitbook.io/coding-interview-patterns/2.-pattern-two-pointers/2.1-pair-with-target-sum-easy#:~:text=int%5B%5D%20copyArray,return%20result%3B This code does not work for following examples - When there are duplicates in the array. [2,5,5,11] 10 Actual Output: [2,2] Expected output : [1,2]
I built a simple web app #19 to track progress through the patterns. Would you like to add this to the README? Just one line: ```markdown ## 🎯 Progress Tracker...
the original "two sum" which is linked in the readme is not an ideal example for two pointers pattern, as here the input array is not sorted. hash maps will...
Update README.md with better Geeksforgeeks link instead of lintcode because requires mobile number for login but Geeksforgeeks is more reliable