[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor applications are now open. Apply here!


[Advertise on 4chan]


So 99% of /g/tards can't get a job because they can't answer 2sum on an interview, let alone 3sum or 4sum.
>>
>>108861104
Then how come they always ask me two leetcode mediums and I have to do them in 1 hour at best.
>>
>>108861122
Leetcode isn't hard.
>>
>>108861130
It isn't but when you have to do it with someone over your shoulder and possibly sleep deprived because you had to be present at a specific time to the meeting and may have insomnia it does hit different.
>>
I did a few interview the questions are harder than that. I wouldn't recommend anyone try to get into tech unless they really want a visa.
>>
Of course /g/ can't get laid (2some) much less have a 3some or a 4some!
>>
>>108861104
The issue is getting the interview, not answering their question
>>
>>108861263
You just sound like a little faggot with no sense of self-accountability.
>>
>>108861104
Saw some yt video where they went around asking cs seniors to write out a very simple program on a whiteboard and like 1/3 failed on the for loop.
tons of normies picked >something with computers
because they were addicted to fortnite and want google money
they will be filtered
>>
>>108861104
>Implying they didn't let him in just for his reputation around
Gullible retards
>>
Why would they even ask him these questions? Seems insulting
>>
looks pretty easy as far as leetcodes go
if you can't immediately come up with a solution to this you probably shouldn't be near a computer
>>
File: 1774134926089.png (193 KB, 460x569)
193 KB PNG
>>108863588
There are a bunch of ways to solve this. Do they give you credit if you do it in a slow, retarded way? If so, then these don't really help you prepare without adding an execution time/memory limit.
>>
>>108861104
anon you don't get a job just because you know how to do the work, you need to a.) pass all of thei rretarded filters to get the interview in the first place, including demographics, age, college name, your personal names etymology, where you live, and a billion other factors that machines decide. then you have to pass the human vibe check. the technical questions are just a formality.
>>
>>108861104
>go to interview
>it's all about actual software engineering e.g. how I'd design systems
>no leetcode
>didn't write a single line of code
>only had a small 30min code review exercise
Thank God I don't live in America.
>>
>>108862000
I always pass them even sleep deprived they just are annoying.
I got non 24h syndrome and being awake at specific times can be taxing.
>>
>>108863675
>thei rretarded filters
filtered
>>
>>108863662
Billion dollar companies are vibe coding insecure slow buggy products in Python. I wouldn't worry about trying to find the optimal solution, just give them a working solution and then you can talk with them about potential optimizations if you think they might care.
>>
>>108861130
He didn't say they were hard. He said they were medium.
>>
>>108863675
>"vibe check"
Why did some people normalize armchair psychiatry?
>>
being a programmer sounds retarded get into webdev instead
>>
>>108861104
question: how does solving this benefit a webdev? I was only ever asked to follow a figma, validate forms and do onboarding for customers. what is this nerd shit lol?
>>
>>108861347
After LLMs have become manstream, it isnt worth it to be in tech. The expectation is to keep getting better than a tech that is progressing every few months
>>
>>108861104
you only get the easy questions if you are of indian descent
>>
If they really asked someone interviewing at director of AI level any programming questions at all then they are full retard.
>>
>>108864787
I am shocked to hear it is that easy. Having trouble believing it.
>>
>>108864659
>I got non 24h syndrome and being awake at specific times can be taxing.
I got bad news for you about jobs anon.
>>
>>108861104
Ieetcode is the most obvious tell of a makework position.
t. Never been leetcoded

Almost did, interviewer tried to stick me on an ai assessment tool that likely contained leetcode, she dropped an unfamiliar link and didnt let me know prior so i declined to click the link and asked if there was another way- hehehe disaster avoided, they were not flexible.
>>
>>108866915
no, its the basic minimum test for any employee. they know who andre is, he's the founding member of openai, he's also the founding member of tesla's FSD ai, and a founding member of google deep mind. you're not smarter than the people hiring him, you're just a retard
>>
>>108861461
Underrated.
>>
File: file.png (337 KB, 498x482)
337 KB PNG
>>108866166
I only knew it from the meme, I had no idea it came from psychiatrists.

t. nta btw
>>
>>108866166
>vibe check
https://dictionary.cambridge.org/us/dictionary/english/vibe-check
>an act of finding out how someone is feeling or how they make you feel, or what the mood in a particular place or situation is:
>A vibe check is a way to measure someone's mood, especially if they are giving out bad vibes.
>Did he pass the vibe check?
>The app will soon be able to give you a vibe check of a neighborhood you're interested in.
it's a word in the dictionary, ask the dictionary police.
>>
>>108861104
Anybody else remember this classic?
https://css-tricks.com/tales-of-a-non-unicorn-a-story-about-the-trouble-with-job-titles-and-descriptions/
>>
>>108869490
>Unironically filtered by fizz buzz and seething
Lmao
>>
>>108869490
Top fucking kek.
>>
>>108869224
The fact that you are even aware that there is a difference between possible solutions makes you far ahead of most other "software developers" BUT the trick is getting to that point in the interview which means getting past roastie HR, nepotism, having the wrong skin color or wrong name, or appearing too awkward, or them just having a bad day and binning a bunch of applications for no good reason
>>
Just cold email approach bro
>>
>>108871729
Imagine working for a trillionaire who paid other people to play video games so he could pretend to be good at videogames apparently because of some major self image problem.
>>
>>108871744
qrd pls?
>>
>>108871771
Elon Musk apparently paid Chinese gamers (maybe his Chinese engineers) to smurf his Diablo 4 account so much so he became the 20th best player in the world while running SpaceX, Tesla, xAI, etc.
>>
>>108869255
Yes i know, this is why i work as an independent contractor now, i choose my time and schedules and i only work from home.
>>
>>108861263
Insomnia sucks, but from the perspective of the company it makes no sense to hire someone with insomnia, or who can't handle stress or early meetings. That stuff is almost as important as raw coding ability.
>>
>>108869331
>they know who andre is, he's the founding member of openai, he's also the founding member of tesla's FSD ai, and a founding member of google deep mind
Then what's the point of asking him a programming question? He's going to be running AI research not programming, do they make the CEO and head of HR do leetcodes as well?
>>
>>108872420
the point is procedure, dumbass. its the same reason people who marry say they love each other and kiss the bride, even though they've already done it before. procedures
>>
>>108871871
And PoE
>>
>>108863588
Uhm, I never had to do anything like this at work
>>
File: k3QBhmHk_400x400.jpg (28 KB, 400x400)
28 KB JPG
>>108861104
sumsum
>>
>>108872420
He likely came to them rather than the other way around, so they make him do the humiliation ritual.
>>
>>108863588
Sort, then start searching from first index of sorted list. Last underflow for the previous search index becomes starting point for next search?
>>
>>108863662
no they get to feel smug when they say "okay now try doing it O(n)" after you do your perfectly normal, real world solution since you're not a psychopath trying to find the sum within 10^4 numbers
and then you ask O(n) in space or time and they shit their pants and everyone claps
>>
>>108873192
Are you guys allowed to just wave your hands and say your solution is probably O(n)?
>>
>>108873327
I mean it's pretty obvious if it is or isnt, never actually had anyone ask exactly how I came to it tho
>>
>>108861104
>Been working for 15 years now
>Never in my entire career have I had to solve any problem even remotely close to this
>I'm expected to waste time studying the solution to these problems that will never come up
>When AI will perfectly spit out the answer
>When it's some faggy web dev slop shop nobody has ever heard of
Leetcode should go and stay go.
>>
>>108872003
Good for you, sincerely. I read a blog post about someone moving to contractor work recently and something they said that struck me was "all you have to do is convince someone to give you money" and it's not like you need permission to earn an income once you start on that.
I've dipped my toes in a bit of contract work. Would love to work in it more consistently. I also prefer that way of working and you get more interesting problems too.
Any tips about it you've picked up?
>>
>>108874494
My biggest tip would be to estimate the time you would need to build something, then give them a roadmap that's twice that time, overdeliver on the first few weeks to build confidence then chill but be consistent in your progress.
>>
File: 1750478337286.png (253 KB, 800x600)
253 KB PNG
>>108873192
>no they get to feel smug when they say "okay now try doing it O(n)" after you do your perfectly normal, real world solution since you're not a psychopath trying to find the sum within 10^4 numbers
I only ask because I have seen mid and even """senior""" level devs write enterprise-scale ETL implementations that were n^2 in time complexity in the real world, when they could have gotten logn or even O(1).

Very odd how anyone with experience could write run-of-the-mill business code that takes literal minutes to execute. When I started teaching myself programming, algorithmic speed is the first thing I ran face first into. How can you write something that hangs for minutes and just go
>"Yep, that's just how slow computers are."
>>
>>108876734
Why sell good code now if you can both bad code now and good code year later.
>>
>>108873972
you aren't supposed to study for leetcode problems
you should already be able to figure them out on the fly, with the harder ones taking longer to figure out
>>
>>108877032
Then why do they have an entire website and SaaS model around studying the problems you're not meant to study?
>>
>>108877139
so that retards that don't know what they're doing can pretend they do and take jobs from people that do know what they're doing
>>
>>108871771
NTA but:
>Paid some chink to boost his Path of Exile II account
>Streams himself actually playing the game and fucking up hard even at basic controls
>Character dies sending all of the progress down the drain (this was in hardcore mode btw)
>Basically shrugged his arms when called out
Egotistical retard wanted to pretend he was an expert sweatlord when he's obviously a casual at best. Still think Elden Ring is the only authentic case of him playing a game even if the build was shit.
>>
>>108877230
Painfully accurate
>>
>>108863588
I haven't coded shit since some embedded C class a bubch of years ago and I could still solve this. Does anyone actual fail these easy ones?
>>
File: illyadance.gif (483 KB, 243x270)
483 KB GIF
>>108861104
i have had 3 jobs and never done a single leet code when interviewers start asking me to dance like a circus monkey i stop the interview
>>
>>108864639
yeah this is how mine have all been, just asking how youd design something that relates to the job. or a problem theyve had before and how youd solve it no actual programming tasks
>>
File: 1768577891127632.jpg (29 KB, 250x408)
29 KB JPG
>>108863588
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
int n = nums.size();
for (int i = 0; i < n-1; i++) {
for (int j = i+1; j < n; j++) {
if (nums[i] + nums[j] == target) {
return vector<int>({i, j});
}
}
}
return vector<int>();
}
};
>>
which website is better, leetcode or codewars?
>>
>>108879133
>Does anyone actual fail these easy ones?
I guess you're isolated from the whole world because most people can't even type or form sentences or spell anymore, let alone reason about programming problems. I envy you that you haven't had to face this reality yet (that almost everyone is pretty stupid on a fundamental and unfixable level).
>>108877139
because
>>108877230
^^^^^^^^^^^^^^

>>108879232
Dangerously based.
>b-but it's O(n^2)!!!
Lol get wrecked codelets. It's probably faster to run that in C++ than the most optimal O(n) solution on Python.
>>
>>108879232
>>108879288
class Solution {
twoSum(nums, target) {
const n = nums.length;
for (let i = 0; i < n - 1; i++) {
for (let j = i + 1; j < n; j++) {
if (nums[i] + nums[j] === target) {
return [i, j];
}
}
}
return [];
}
}

javascript is king
>>
>>108862733
Sadly it's the exact opposite and this is precisely the problem. Those retards who shouldn't be anywhere near computers get the jobs because the only thing recruiters care about is "do I want to have a beer with this guy" which is sometimes referred to as the "beer test". They couldn't care less about actual ability, credentials, projects, or anything like that. Has been like this since I got my first job 15 years ago (after applying to about 150 jobs and getting maybe 10 interviews, the ratio is much WORSE today than it used to be despite the fact I have 15 fucking years of exp more). When I have roles where I interact directly with clients, I often get to talk to their employees and it's very depressing for this reason: I'll be interfacing with the dumbest motherfuckers on the planet. They've been at the job over 20 years and couldn't fizzbuzz their way out of a paperbag, yet I have to struggle and fight and contort myself for mere chances at maybe getting crumbs.
>>
>>108863662
No, you have to do it optimally. Also like others mentioned, I have never seen a leetcode less than medium ever being asked. Generally for me it's been 1 medium 1 hard or 2 hards, never seen easier.
>>
>>108861130
Some of the leetcode questions' answers were turing prize-winning discoveries. Cope.
>>
>>108872420
It's common for CEOs to do a 1 month business exercise for free with the rest of the team as a prerequisite to joining, yes. HR absolutely should be tested in this way given their track record.

But you're not fully wrong. Just, the guy should be able to program or he'll make shit decisions that will lead to the AI software (which requires state of the art architecting and infra work to serve today) will crap the bed in production, guaranteed. Leetcode never has been and never will be the answer to that though.
>>
>>108876734
So that's the thing: in real life, nobody cares. As for leetcodes, they are impossible unless you memorize the answers because many of them rely on a specific mathematical trick instead of a programming pattern, you are in a stressful exam-like situation, that never comes up on the job, AND there is too little time to solve them in a realistic manner (i.e. as you would solve them if you were actually working). In fact, you'll often spend like 10+ minutes even figuring out what the fuck the question statement says in a lot of them. Finding a solution is super easy. Finding THE optimal solution is not happening in the vast majority of cases within the ridiculous time constraint. Although for some reason I can do any hard dynamic programming leetcode in 15 minutes max, while other people seem to really struggle with those...
>>
>>108879133
Easy ones should be solvable by any freshman without prior exposure to any similar material. It should never take more than 30 minutes for even such a freshman.
>>
>>108861104
Back when I was a programmer the interviewer gave me two math puzzles. The first was to calculate the number of trailing numbers of a factorial and the other was a geometry quiz.

No coding needed. Different times...
>>
>>108881096
>Some of the leetcode questions' answers were turing prize-winning discoveries.
And? Once upon a time, all of today's basic knowledge used to be an important discovery.
>>
>>108881306
That the way leetcode is used requires you to, in principle, recreate one person's entire body of work over decades within 30 minutes if you want to get the job (which is why in practice you are forced to just memorize most problems).
>>
>>108863588
Nested loop and just brute force. People waste their time """training""" for this shit?
>>
>>108879288
>Lol get wrecked codelets. It's probably faster to run that in C++ than the most optimal O(n) solution on Python.
This. I am consistently getting wrecked trying to apply Leetcode theoretical bullshit to actual code. Every single time it has turned out that the "brute force" way of solving something ends up faster than the fart smelling academic solution due to physical realities like cache misses, branch prediction, etc. because its turns out almost all real code does not operate on a collection of 10000000000000000000000 items.
>>
File: 1776299264472955.jpg (72 KB, 1050x1042)
72 KB JPG
>>108862733
The Google engineers that created the leetcode interviews were later asked to answer the exams they themselves created and all of them failed.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.