VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
MASTER your coding interview

MASTER your coding interview

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Learn tips and strategies for mastering technical whiteboard coding interviews. You will see how to solve many common interview problems and understand the concepts behind the solutions. Coding interviews aren't all about how good you are at software engineering. They're about how well you play the coding interview game. This video will help you beat the game. -- Contents -- -- (0:01:04) Median of Arrays -- (0:36:19) Missing Two Numbers -- (1:08:10) 0-1 Knapsack -- (1:38:37) Integer to Roman Numeral -- (1:55:59) Matrix Product -- (2:29:36) Autocomplete -- (3:01:14) Build Order -- (3:28:11) Find All Duplicates -- (3:46:45) Priority Queue -- (4:17:34) List Cycles -- Problems Descriptions and Code -- https://www.byte-by-byte.com/median/ https://www.byte-by-byte.com/twomissingnumbers/ https://www.byte-by-byte.com/01knapsack/ https://www.byte-by-byte.com/inttoroman/ https://www.byte-by-byte.com/matrixproduct/ https://www.byte-by-byte.com/autocomplete/ https://www.byte-by-byte.com/buildorder/ https://www.byte-by-byte.com/findduplicates/ https://www.byte-by-byte.com/priorityqueue/ https://www.byte-by-byte.com/listcycles/ - PDF download with 51 interview questions: https://www.byte-by-byte.com/50-questions/ - Course from Sam Gavis-Hughson of byte-by-byte.com. Check out his YouTube channel: https://www.youtube.com/channel/UCWSYAntBbdd2SLYUqPIxo0w
Date: 2022-03-14

Comments and reviews: 10


1:07:34 The example works because you know how the input array was sorted for you to implement the pivot (ie. left side of pivot is smaller than pivot and right side is larger). The original problem did not stated the input array is sorted nor did it state how the input array is sorted. In general, you would be running your loop in ascending order and ended up working with a descending order sorted input array (or not sorted at all). The implemented pivot method would fail. Therefore, wouldn't the Big O analysis has to be O(nlogn) to account for sorting the input array first for you to know how the input array was sorted?
reply

For the two missing integer problem, there is an elegant math solution.
We can do A = sum(1, ... , N) - sum(arr) like before, but then compute B = sum(1-2, ... ,N-2) - sum(x-2 for x in arr). Let (x, y) be the solution. Then it stands to reason that A = x + y, and B = x-2 + y-2. We have two equations and 2 unknowns, so we can eventually get to a closed form equation and use the quadratic formula to compute x and y. I'll leave it to the reader to figure that out :)

reply

i undertand code . i just dont understand the language used to describe it . its like code is simple and logic but to describe the concepts they use big words to try confuse people . its elitism . as soon as you simplify how you explain programming coding becomes easy .
reply

Nowhere in the freeCodeCamp curriculum is there even ONE lesson that uses Java. I was really excited when I saw this video, then I became frustrated. Why. why. why!? Not to look a gift horse in the mouth, haha. The problem breakdowns were useful.
reply

You need to work on the conciseness of your language. You may be a decent programmer but not a good presenter. And Java as a language of choice? Basically, both the presentation and the programming language are too verbose.
reply

This is the first time I'm looking into a knapsack problem. The recursive approach without cache looks better in terms of space complexity. So if we have the max weight as 50 we need to have 51 columns? hmm.
reply

Please INCREASE the font size at least 2x, you certainly have enough screen space. I quit after 3 minutes. His glasses magnify the screen for him. Take a lesson from Mosh Hamedani!
reply

Real challenge would be to build FIFO(first input first output) in a heap which contains duplicate keys. I have done it and believe me its a challenge for sure.
reply

Note he is using Java language. Should have mentioned that in the title or description or somewhere. But I do appreciate you passing down your knowledge to us.
reply

The knapsack solution isn't really a solution. What if you have weights like this: - 1, 5, 3 -. This will just crash with IndexOutOfBounds exception
reply
Add a review, comment






Other channel videos