News for hackers. Stuff that matters.
Re:Leetcode has taught me that I'm a bad engineer by kkjjkgjjgg on Wednesday January 05, 2022 @10:46AM (#29810384)
But wouldn't it be exactly the hallmark of a self-taught programmer to be able to figure things out on their own? In general I don't think a programmer can expect the kind of job where they only do standard things all the time?

Merging and comparing arrays as in that task also seems like something that might actually come up in a job.

However, I take the point of the other comment that the real issue here is doing it with certain speed requirements. That does make it harder, indeed, but still doable.

Re:Leetcode has taught me that I'm a bad engineer by PenguinCoder on Wednesday January 05, 2022 @12:35PM (#29812068)
Self taught programmer here. I get stuff done for the project or program I'm working on. I learn how to do what I need to do securely and automate a lot. I can figure out documentation of frameworks, libraries and random code written 10yrs ago. I can glue things together or write new code in python, golang, C, C++, shell, nim, lua, and others. I'm self taught where it matters to get my job done.

Self learning 'big O' is a waste of time and effort. Never have I needed to know it to accomplish a task beyond interviews. Don't nest six for loops, reading lines from a file into memory each loop. Got it, learnt it, can do. Next problem.

This gatekeeping attitude is bullshit.

Re:Leetcode has taught me that I'm a bad engineer by kkjjkgjjgg on Wednesday January 05, 2022 @05:05PM (#29815697)
I never used the O notation in a job, but I have seen people waste cycles. For example in the early days of ORM, I saw people load the whole table and then sort and filter in Java, rather than writing appropriate SQL queries.

Understanding Big O notation is not that difficult and everybody knows it is a common question in interviews. Analyzing specific algorithms can of course be difficult.

Re:Leetcode has taught me that I'm a bad engineer by jugg1es on Wednesday January 05, 2022 @11:17AM (#29810868)
Absolutely - a self-taught programmer should be able to figure out how to solve that problem. All I'm saying is that it's going to take longer for the self-taught to solve it because it's not something they have thought much about before.

Having a CS degree gives you a large advantage when solving problems like this, but that advantage is markedly lower when you are trying solve typical real-world problems in the private sector.

Re:Leetcode has taught me that I'm a bad engineer by ZephyrBlu on Wednesday January 05, 2022 @04:38PM (#29815331)
> But wouldn't it be exactly the hallmark of a self-taught programmer to be able to figure things out on their own?

Self-taught or not, no one is able to derive an optimal solution to algorithm problems on the fly. You must have previously learnt the technique, and probably practiced applying it a lot.