Solving LeetCode - 001 - TwoSum example from a hiring manager

  Рет қаралды 1,787

The Deliberate Engineer

The Deliberate Engineer

Күн бұрын

LeetCode is a website commonly used to practice for the coding portion of software engineer interviews.
In this video, I - former hiring big-tech manager and principal engineer - Discuss whether this would be a good or typical interview problem, and walk through solving it once.
One thing I'm looking for here is feedback on whether I should make a bunch of these videos, and if there's other content you'd like in them.
TABLE OF CONTENTS
00:00 Introduction
01:29 Two Sum description
02:39 Reviewing the problem statement
03:55 First solution attempt
06:27 Test cases
07:05 Debugging
07:55 Successful run
08:26 Wrap-up

Пікірлер: 26
@quentinhughes469
@quentinhughes469 2 жыл бұрын
to be completely honest there are many many channels on youtube making detailed videos on leetcode, i don't think this is the best use of your time, and my personal opinion is that it really doesn't add much. I very much appreciate your other type of videos giving real insight into industry, that is the sort of stuff nobody really talks about on here, i think you should spend your time on those. sorry if this is rude, just being honest since i love ur channel
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
I absolutely appreciate you taking the time to watch & to let me know, thank you!
@11704187
@11704187 2 жыл бұрын
+1 There are _tons_ of videos about "cracking the coding interview" and they are very well done. The chances that you are able to make a better video about this subject are small, and if you do, the difference in quality between your best video and the second best video will also probably be small - they're already really good! For your other videos however - there really isn't a lot of stuff out there like them and if there is, yours are _way_ better (my favorite is "Don't feel trapped at your current job by money!"). I'll keep watching the stuff you put out regardless, but just my 2 cents on specialization :)
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
@@11704187 Makes sense, thank you for the feedback, and for watching!
@razkhn5029
@razkhn5029 2 жыл бұрын
I am interested to see more on this, on diff problems as well and thought process to solve them. Also Object Oriented Design, System design would be great.
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
Thank you for watching & giving feedback, and for the suggestions!
@andygrace5497
@andygrace5497 2 жыл бұрын
I think it would be valuable to see another 10 minutes following this. In most interviews, solving the question is simple enough, but the interviewer will ask me questions about my solution. For example, “what is the time complexity?”, “how would you speed this up?”, “what if I added this constraint X, how would you solve it?” I always feel like I freeze up at that part of the interview and it would be great to hear your perspective as a hiring manager. Cheers!
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
That's a great idea! For any future leetCode stuff I do, I'll try to add more of the 'hiring manager' angle. Thanks for watching and commenting!
@roshanpoudel3605
@roshanpoudel3605 Жыл бұрын
I would like to see you solve a random Leetcode Medium/Hard problem that you have not solved before in real time. It would be interesting to see the thought process that leads to the solution.
@TheDeliberateEngineer
@TheDeliberateEngineer Жыл бұрын
Thank you for watching & for the suggestion! I'll see about sitting down to do it sometime.
@clarmso
@clarmso 2 жыл бұрын
5:05 - Thanks for the blunt honesty towards yourself on the mistake! It'd be more useful for us to know how the different levels of engineers (new grad vs experienced) answered the same problem and possibly handle the mistake *during* an interview. We can subscribe and read the solution on Leetcode ourselves, but giving a correct solution during an interview does not 100% a job offer.
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
Good suggestions, thank you!
@arsvi123
@arsvi123 2 жыл бұрын
Thanks for the video! Any chance you can make a video like this but for system design questions? I feel like there are a lot of resources on grinding leetcode but not nearly as many on preparing for more experienced/system design positions. Thanks! Your channel is great btw as someone who is still early in the career but beyond that hump of getting the first job.
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
Thanks for watching and the kind words! I'll see if I can find something for a system design example. The ones I know test domain knowledge rather than abstract design, though, so they're less general than leetCode.
@RM-xr8lq
@RM-xr8lq 2 жыл бұрын
i would just make a video covering the different leetcode problem archetypes: BFS/DFS/traversals, divide and conquer, memoization, two pointers, backtracking, etc. since once you are familiar with the different types, you would already know the optimal technique for most problems (and just need to work out which one it requires, "convert" the problem into a graph/tree/matrix etc.) that is one of the reasons grinding leetcode for a while is a decent strategy (making sure to study the optimal solutions in various languages), just from being exposed to all the basic algorithm techniques
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
Thanks for the suggestion, it's a good one!
@mohabkhaled1391
@mohabkhaled1391 2 жыл бұрын
I tend to disagree with others who don't see this valuable, for me the value isn't coming from solving leetcodes per se, rather from the solver - you John, seeing your thought process and these things thrown in the middle, especially with the much harder problems is more valuable than getting solutions from someone who don't know except how to solve leetcodes
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
Thank you for the alternate perspective! I'll probably do at least a couple more, and put a little more time into emphasizing their relationship to "typical" interview questions.
@groovy-kb8km
@groovy-kb8km 2 жыл бұрын
Hi, thanks for the video. what do you think are the most important things in coding interview? algorithm completeness? communication?
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
Communication is key. As an interviewer, I wanted to understand not just what the candidate was doing, but why. Did they question their assumptions? Did they think about performance? Did they carefully consider the requirements?
@anthonyc8579
@anthonyc8579 Жыл бұрын
Can you do a medium or hard level problem next?
@TheDeliberateEngineer
@TheDeliberateEngineer Жыл бұрын
If I do another LeetCode problem, I'll do a 'hard'. There was a lot of feedback saying they've been done really well by other folks, though, so recommend searching for existing videos.
@anthonyc8579
@anthonyc8579 Жыл бұрын
@@TheDeliberateEngineer most of those are done by junior or intermediate level engineers. It would actually be interesting to see it from a perspective of a principal engineer to see if theres a correlation/higher standard (or inverse) between level and leetcode coding skills.
@ZeroColdx911
@ZeroColdx911 2 жыл бұрын
Feel like this is the new fizzbuzz of leetcode, unlikely that you’ll see it. Good video though
@TheDeliberateEngineer
@TheDeliberateEngineer 2 жыл бұрын
It's literally the first problem on LeetCode, and it's (or it should be) easy to solve, so yea, can totally see it being mentioned a lot! :)
@khalidomar1783
@khalidomar1783 2 жыл бұрын
First
Starting "Impossible" Software Engineering Tasks - tips from a principal engineer
14:47
Climbing Stairs - Dynamic Programming - Leetcode 70 - Python
18:08
Miracle Doctor Saves Blind Girl ❤️
00:59
Alan Chikin Chow
Рет қаралды 60 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 2,5 МЛН
MatPlot | 넘파이 | 파이썬 프로그래밍
21:39
사람만이
Рет қаралды 2
Generate Parentheses - Stack - Leetcode 22
13:37
NeetCode
Рет қаралды 295 М.
6 Tips for Senior / Principal Interview Prep
13:24
The Deliberate Engineer
Рет қаралды 7 М.
5 tips to be a more productive software engineer
15:33
The Deliberate Engineer
Рет қаралды 3,4 М.
About Software Patents from a Principal Engineer
17:50
The Deliberate Engineer
Рет қаралды 3,2 М.
Why Principal Engineers Shouldn't Say "No"
5:25
The Deliberate Engineer
Рет қаралды 3,3 М.
LRU Cache - Twitch Interview Question - Leetcode 146
17:49
NeetCode
Рет қаралды 230 М.
Blueprints vs. C++: How They Fit Together and Why You Should Use Both
47:14
Trapping Rain Water - Google Interview Question - Leetcode 42
23:21
Should you be an AAA game developer?
14:16
The Deliberate Engineer
Рет қаралды 1,5 М.
ПРОБЛЕМА МЕХАНИЧЕСКИХ КЛАВИАТУР!🤬
0:59
Корнеич
Рет қаралды 3,7 МЛН