Proof that Leetcode WON'T make you a good developer
Key Takeaways
The video discusses the limitations of LeetCode in making a good developer, with the creator of NeetCodeIO sharing their experience of debugging a complex issue in their code, highlighting the importance of systems design and problem-solving skills beyond just coding challenges.
Full Transcript
so it's actually quite simple what the problem was when I made the code change this morning at 80 hey everyone welcome back and let's write some awful code today what else should we add let me know if you have any suggestions for things we should add the one thing is like if I give a test case and for example I want to be able to display the diff of a test case that you may have failed cuz some of these can get pretty big these ones like for example this one your outp is here the expected output is different you want to see the difference though and it's not super clear by just looking at it so is there a way we can make this better yes there is we can add a button somewhere uh what's the end goal with this getting rid of like the need to redirect to elak code I guess but also just having the flexibility to add additional problems uh for example I'm adding like a bunch of machine learning ones pretty soon huh why do it show accepted it must be because these two are equal and what is that it shouldn't be equal so what's going on here this is accepted even though the answer is 100% wrong it shouldn't be marked like that test case output I guess I should just log it really what I should have done 5 minutes ago this thing annoys the hell out of me I need some handicap tools to help me read let me put my two brain cells together to figure out what's going on here so the data looks fine but something is a Miss why the hell is this one true and how the hell is the color red no no no no no no no this one is true right yeah it must be because it's red so this it must be red Yeah it's red so this one is executing how in the hell is that possible yet it's green for the third one makes sense they're equal wait a minute I think I know what it is this is a problem because I'm really dumb and thank God I have not pushed this to production yet you guys notice something if if I look at the submissions here they're all accepted that should not have been the case it's some code changes I made this morning when I was laying in bed you guys know what this means right this means I have to blame the backend Dev there's some code here it validates whether it passed or failed on the back end the front end is just for displaying The Styling and the colors and whatever right oh my God I really should have named these things better I don't know what I was thinking I literally just did this code today I think it's here actually here it is is it it's definitely this code let's just remove it just a test okay that was not the issue but wait the problem is that server side the thing is being marked as accepted when it really shouldn't that's really it somehow it's being marked accepted and I know pretty much where that happens as well it happens in checking if all submissions are correct we Loop through all of them so let's just check here console everybody's out there learning fun Tech and I'm sitting here working on angular I kind of want to check the judge response where is that once again see look how hard it is to read those logs dude so it looks correct to me how is it marked as accepted though I'm setting it to accepted probably here but it looks like it's already set to accepted let me see okay it's it's accepted before that okay I'm G to get really wait a minute I know it fellas it's when I'm submitting to judge zero this is the code I updated this is it and I'm so confident in my hypothesis I need my theme song on yes the 1H hour version should do so it's actually quite simple what the problem was when I made the code change this morning at 8:04 a.m. laying down in my bed in my underwear I made a code change here it doesn't let me copy and paste it what the hell why doesn't it okay there we go sorry now we have fix the bug the timing of the music is a little bit off I actually still don't know if this is it and if it is I don't know exactly how to fix it I mean I'll give it a go it's pass in some expected output let's pass in an empty array because YOLO wait a minute wait a minute what the [ __ ] no I am setting the test case output somebody like me with an IQ of 180 should be able to fix this on their first try okay so we didn't fix the problem I don't know guys I thought that was it wait it should be a string there's a lot of issues in this code I mean the more you look at this code the more brain cells you're going to lose I promise you that so if you guys are actually going to try to help me debug it you are very brave for doing that second Tres the charm holy okay we don't need the music anymore we save it for a rainy day it's just light work for an ex Google engineer like myself but you know I had to sell the story a little bit I had to make it look like I was struggling just to kind of get the narrative going do you know what I mean
Original Description
🚀 https://neetcode.io/ - A better way to prepare for Coding Interviews
🧑💼 LinkedIn: https://www.linkedin.com/in/navdeep-singh-3aaa14161/
🐦 Twitter: https://twitter.com/neetcode1
⭐ BLIND-75 PLAYLIST: https://www.youtube.com/watch?v=KLlXCFG5TnA&list=PLot-Xpze53ldVwtstag2TL4HQhAnC8ATf
#neetcode #leetcode #python
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from NeetCodeIO · NeetCodeIO · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Leetcode 149 - Maximum Points on a Line - Python
NeetCodeIO
Design Linked List - Leetcode 707 - Python
NeetCodeIO
Minimum Time to Collect All Apples in a Tree - Leetcode 1443 - Python
NeetCodeIO
Design Browser History - Leetcode 1472 - Python
NeetCodeIO
Number of Good Paths - Leetcode 2421 - Python
NeetCodeIO
Flip String to Monotone Increasing - Leetcode 926 - Python
NeetCodeIO
Maximum Sum Circular Subarray - Leetcode 918 - Python
NeetCodeIO
Find Closest Node to Given Two Nodes - Leetcode 2359 - Python
NeetCodeIO
Concatenated Words - Leetcode 472 - Python
NeetCodeIO
Data Stream as Disjoint Intervals - Leetcode 352 - Python
NeetCodeIO
LFU Cache - Leetcode 460 - Python
NeetCodeIO
N-th Tribonacci Number - Leetcode 1137
NeetCodeIO
Best Team with no Conflicts - Leetcode 1626 - Python
NeetCodeIO
Greatest Common Divisor of Strings - Leetcode 1071 - Python
NeetCodeIO
Shortest Path in a Binary Matrix - Leetcode 1091 - Python
NeetCodeIO
Insert into a Binary Search Tree - Leetcode 701 - Python
NeetCodeIO
Delete Node in a BST - Leetcode 450 - Python
NeetCodeIO
Shuffle the Array (Constant Space) - Leetcode 1470 - Python
NeetCodeIO
Fruits into Basket - Leetcode 904 - Python
NeetCodeIO
Number of Subarrays of size K and Average Greater than or Equal to Threshold - Leetcode 1343 Python
NeetCodeIO
Naming a Company - Leetcode 2306 - Python
NeetCodeIO
As Far from Land as Possible - Leetcode 1162 - Python
NeetCodeIO
Shortest Path with Alternating Colors - Leetcode 1129 - Python
NeetCodeIO
Minimum Fuel Cost to Report to the Capital - Leetcode 2477 - Python
NeetCodeIO
Count Odd Numbers in an Interval Range - Leetcode 1523 - Python
NeetCodeIO
Contains Duplicate II - Leetcode 219 - Python
NeetCodeIO
Path with Maximum Probability - Leetcode 1514 - Python
NeetCodeIO
Add to Array-Form of Integer - Leetcode 989 - Python
NeetCodeIO
Unique Paths II - Leetcode 63 - Python
NeetCodeIO
Minimum Distance between BST Nodes - Leetcode 783 - Python
NeetCodeIO
Design Hashmap - Leetcode 706 - Python
NeetCodeIO
Range Sum Query Immutable - Leetcode 303 - Python
NeetCodeIO
Binary Tree Zigzag Level Order Traversal - Leetcode 103 - Python
NeetCodeIO
Middle of the Linked List - Leetcode 876 - Python
NeetCodeIO
Course Schedule IV - Leetcode 1462 - Python
NeetCodeIO
Single Element in a Sorted Array - Leetcode 540 - Python
NeetCodeIO
Capacity to Ship Packages - Leetcode 1011 - Python
NeetCodeIO
IPO - Leetcode 502 - Python
NeetCodeIO
Minimize Deviation in Array - Leetcode 1675 - Python
NeetCodeIO
Longest Turbulent Array - Leetcode 978 - Python
NeetCodeIO
Last Stone Weight II - Leetcode 1049 - Python
NeetCodeIO
Construct Quad Tree - Leetcode 427 - Python
NeetCodeIO
Find Duplicate Subtrees - Leetcode 652 - Python
NeetCodeIO
Sort an Array - Leetcode 912 - Python
NeetCodeIO
Ones and Zeroes - Leetcode 474 - Python
NeetCodeIO
Remove Duplicates from Sorted Array II - Leetcode 80 - Python
NeetCodeIO
Maximum Twin Sum of a Linked List - Leetcode 2130 - Python
NeetCodeIO
Concatenation of Array - Leetcode 1929 - Python
NeetCodeIO
Symmetric Tree - Leetcode 101 - Python
NeetCodeIO
Check Completeness of a Binary Tree - Leetcode 958 - Python
NeetCodeIO
Construct Binary Tree from Inorder and Postorder Traversal - Leetcode 106 - Python
NeetCodeIO
Find Peak Element - Leetcode 162 - Python
NeetCodeIO
Accounts Merge - Leetcode 721 - Python
NeetCodeIO
Binary Tree Preorder Traversal (Iterative) - Leetcode 144 - Python
NeetCodeIO
Binary Tree Postorder Traversal (Iterative) - Leetcode 145 - Python
NeetCodeIO
Number of Zero-Filled Subarrays - Leetcode 2348 - Python
NeetCodeIO
Minimum Score of a Path Between Two Cities - Leetcode 2492 - Python
NeetCodeIO
Sqrt(x) - Leetcode 69 - Python
NeetCodeIO
Successful Pairs of Spells and Potions - Leetcode 2300 - Python
NeetCodeIO
Optimal Partition of String - Leetcode 2405 - Python
NeetCodeIO
More on: Systems Design Basics
View skill →Related Reads
📰
📰
📰
📰
75 Days of Leetcode — Day 4: #238 — Product of Array Except Self
Medium · AI
I implemented the algorithm that broke the sorting barrier. Dijkstra still wins.
Medium · Programming
I implemented the algorithm that broke the sorting barrier. Dijkstra still wins.
Medium · Python
Practice Algorithms and DS the Structured Way
Medium · Programming
🎓
Tutor Explanation
DeepCamp AI