r/leetcode • u/niclis • Oct 23 '23
Question Is there a smarter alternative to leetcode?
Rather than running your code against 100 different test cases and failing you if you miss 1, is there a platform that can use AI to tell you if you have the correct approach that covers the general case and then a couple of the more common edge cases? I feel like that would more useful and more in line with a standard white board interview.
7
u/Yosh123 Oct 23 '23
For older, popular questions you can probably use chat gpt. Those questions and their solutions were included in its training set so it should be able to provide quality interactive feedback.
For newer mediums and hards that LLM’s weren’t trained on, and even some of the easy problems, AI fails pretty hard in its current state. It will be interesting to see whether analytical creative problem solving emerges in the next iteration of the model. More scale, data, and multimodality might be enough to cross the intelligence threshold where it can solve unseen mediums and hards, but I’m not totally sold on that.
If you are okay with practicing older, common algorithms problems an AI tool like chat gpt will probably suffice. Otherwise, you might need to wait for AI to get better at the type of thinking needed for competitive programming and coding interviews.
0
8
u/Quick_Butterfly_4571 Oct 23 '23 edited Oct 25 '23
Contributing to open source. 20+ years interviewing. The leetcode tests are not how we "filter applicants because of volume." They're how we order applicants that don't have work to demonstrate.
...
ℹ️ Disclaimer: I can't speak to the whole industry / every company. There are many that at least screen on technicals. I am extrapolating from my experience on hiring panels (many hundreds) + friends' experiences of the same. I got some very helpful comments below that make a good case for the opposite of what I'm saying also being true some places. (I can't speak to the ratio, but others in the thread/sub probably can — some of whom also have conducted many interviews / might have a better pulse on general trends).
...
Come in with a degree, leetcode skills (which, more than anything, we use to assess process and communication, not expertise), but no experience: if you set the record for the highest marks, you go to the top of pile #2.
If someone comes in and has patched bugs in an open source lib, has a learning blog, noodles with arduinos, helps a small business, has a github project that is decent — especially if you have collaborators: you go into pile #1. Notably: it is entirely possible and often the case that we'll end up hiring someone who performed worse on the technical if they can demonstrate actual programming experience, esp in concert with others.
The market is tough. Sometimes you do have to do hundreds of interviews (I've been there). But, in a tough market, if your prinary focus is algorithms and toy problems, the plain facts are: you will go into the pile of callbacks that we refer to if no one in the experience pile accepts the job. You don't need a job to get experience either: OSS is free experience and free education.
Patch a bug in one of your favorite libs. Start a blog post where you communicate your learnings. You will immediately go from vaiing for one position against a thousand other people to being in the top 50.
Have been on both sides if the table, but on the hiring side more than not for a long time. Many hundreds of interviews and hires (yes, right on up through 2023). This is for sure: leetcode is a great way to practice to reduce test taking nerves. It is not important to us that you nail the technical, unless that's the only metric you leave us with. In that case, you must — because you ae competing with the thousands of other people with the same misunderstanding re: what we are looking for.
(And internships are good, but if you can't speak in specific detail to architecture, business impact, requirements, or articulate a difficult bug and solution, we just note that you have been putting in effort — doesn't matter if it's NASA, Google, JP Morgan, etc. We've all worked there or know people who do. Sometimes internships are invaluable! We try to give work you can put as huge wins on your resume! But, we also understand that many places just have you write YAML for CI/CD or add methods to classes in an enormous framework and no one makes time to provide you with context. That's not universal, but it is common. In either case: it's not your fault).
⚠️Note: many, many people working on OSS are nice and will be happy to help. There are a lot of jerks too. They might be dismissive, wrong, mean: if you run into that, be gracious in return and know when to call it on the discussion: that's also a huge win. You're gonna run into jerks. Being able to slough it off without adding to the snide vibe is a great look.
I didn't intend to make any universal claims. I should have made that clear.
2
u/Quick_Butterfly_4571 Oct 23 '23
Note: I don't mean "you have to make GCC optimization better" or anything big (I mean, that'll get you a job, for sure, but don't settle for junior, then! 🤣).
Even things like:
fixed wonky CSS
fixed JSON handling in such-and-such endpoint
documentation updates!
Anything! 🤘😀
They can be one liners too! You don't have to make a massive impact: just show that you're currently working on software.
Re: personal projects, I don't mean: "invent a new framework": stand up a "my first flask API" that does something trivial and just note it as "poking around with flask for fun." Take some leetcode problems and implement a solution, not even the best and then list benchmarks of using the STL for one part or a boost lib for another.
You don't have to do something profound or impactful. You can even just be learning something and show it!
(Hang in, though! It can be scary and hard, I know).
4
Oct 23 '23 edited Mar 01 '24
plucky kiss quack rock shame dazzling merciful degree brave squeamish
This post was mass deleted and anonymized with Redact
1
u/Quick_Butterfly_4571 Oct 23 '23 edited Oct 23 '23
Well, I mean, it's not a universal truth. I'm one person. Yeah, I'm drawing from many hundreds of interviews conducted, but I can't say "this is universally true."
Reminder: my point isn't "don't study," "people don't test," or "no company screens by technicals." My point is just: people are doing a disservice to focus on test scores disproportionately.
This is just useful info in my experience and also reflects the process/values relayed by buddies in the industry at other companies. Even the aggregate experience of the lot of us is still anecdotal.
I'm also not saying "they won't test you." I'm saying "the test doesn't have the hiring primacy people ascribe to it."
The company I'm at now (~600 engineers) does do them for almost everyone (definitely for everyone below Staff Engineer — our levels are "associate, engineer, senior, lead, staff, and principal").
But, even for associates, they aren't really used in the hire/don't decision beyond discussion of approach and communication. Like, you have to solve at least one. It doesn't have to be the optimal solution. People sometimes nail them all and don't get a callback. Sometimes they just do okay and still do.
A lot of what (again, this is at the companies I've worked at / where my friends work) we're assessing is communication, e.g. after solving, we'll sometimes ask about an alternate approach — even if your solution was optimal — if you are snide, dismissive, or argumentative: we'll thank you for your time, but you just failed the interview. That happens a bit.
Also I'm sure it depends on where you apply! I haven't had to do a technical at all since 2010, but like I said: we still do them for mostly everyone.
All I'm saying is: in my experience they are not make/break for hiring decisions, people who ace them sometimes don't get callbacks while people who don't sometimes do.
1
u/Quick_Butterfly_4571 Oct 23 '23
Wait, 8 years of multiple LC-type stages?
The norm (in my experience) is a phone screen (that's easy + is a filter), then 5-6 1hr rounds — 2-3 being technical (one LC style, the rest design/architecture, scoped to level/reqs).
Are you applying exclusively to finance?
(This is not snide or sarcastic. I'm legitimately interested).
prove my worth
I'm sorry you've been through that. IMO, It's unfortunate there are still places that think you can assess worth through LC type tests. (Their loss, I guess).
2
u/JakeMetzDev Sep 05 '24
Just thank you for the amount of detail and experience you added to this thread. There is no one size fits all answer to this topic so I appreciate you jumping in the comment pit of doom and sharing.
I'll be taking this into consideration as I craft my career pursuit strategy
1
0
Oct 23 '23
[deleted]
1
u/Quick_Butterfly_4571 Oct 23 '23 edited Oct 23 '23
Again, I'm, not asserting universal truth. I'm talking about my company (from the inside), and a handfull of others (mostly in NYC area, per my friends — I should see to what extent they're allowed to share publicly and poll).
It could be companies are screening more aggressively than in the past (see other comment where I acknowledge some always do).
I don't interview much these days (I try to do 1-2 every six months; I've only done one in the last year. I wasn't tested, but I'm an outlier in a way that makes my experience as an interviewee totally unhelpful on average).
What's the basis of the 90% figure? (And, do you mean "90% of getting your foot in the door is LC" or "90% of hiring decisions?")
1
u/Quick_Butterfly_4571 Oct 23 '23
I guess (this is an earnest ask), do you think:
my post is unhelpful the point that I should "nevermind" and cull it, because it's bad advice?
that I should scope or couch it?
that I should recommend the "this stuff helps" bit and remove the discussion of the relative value of the technicals?
Like, my goal was to help. If I'm not helping, I'd love to know (and how you know, if comfortable) — even it it means I have to feel a little embarrassed. I'd rather get the feedback (but, like, with some indicator of certainty).
1
u/qwquid Jun 29 '24
I found it helpful; I would maybe just add a note next time that summarizes what this is based on (e.g. the size/tier of your company / the companies you know for which your advice applies, as well as when you were last intensively interviewing, since I've heard the hiring process has got a lot tougher over the past few years)
0
Oct 24 '23
[deleted]
1
u/Quick_Butterfly_4571 Oct 24 '23
Right on. Well, I appreciate the time to share the insight. I mean, I'm with you on requiring competence. We don't decide based on what's on resume, per se, but it's something to discuss in the history portion (we do 5-6 rounds, 2-3 are technical, the other 2-3 are things like "ability to teach and learn," etc).
One of them is walking through experience. So, like, if I get one candidate that nails every technical, and one that does good but not perfect — who can arrive at or describe the perfect solution after some follows ups — if the latter person can speak to accepted pull requests and the former can't, the latter gets the job.
(The former has to be brought up to speed on programming / working with programmers, while the latter can study algorithms for kicks, if they want — but they have a higher chance of immediately contributing to throughput / revenue).
We're not the biggest company — ~600-700 engineers at any given point in time, ~6k full time employees in the stated and $2-2.5b in revenue annually; decades ago, that would be huge. That's probably less than google spends on keyboards! 🤣(hyoerbolic).
Thanks again! Much appreciated!
1
u/Quick_Butterfly_4571 Oct 24 '23
(I should also do some interviews for kicks: I wonder if my "I haven't been tested" is mostly happenstance).
0
Oct 24 '23
[deleted]
1
u/Quick_Butterfly_4571 Oct 25 '23
Well, that's valid.
I really appreciate you taking time to answer (I know I was verbose + the subsequent update to the post had some self-righteous undertones...which probably still bear more pruning).
It means a lot that you waded through the bloviating and provided worthwhile feedback, even when I was (in my view) probably a bit much/annoying.
Also, it's made it clear to me that I extrapolated too broadly and wasn't clear enough about what the scope of the "we" in "we look for..." was.
Thank you for being kind and helpful. Pardon me for the initial dubious reaction and the comment barrage.
Much appreciated + 🤐+ 🤔from me for a bit (here, on this topic).
2
1
u/zackdo Dec 01 '25
Yeah, I’ve felt the same way — a lot of platforms overload you with 50–100 test cases, including super contrived edge cases you’d never see in a real interview (random Unicode, weird overflow traps, etc.).
One alternative you might find useful is Alo Algo (full disclosure: it’s my project). It doesn’t rely on a giant wall of hidden tests. Instead, it focuses on the kinds of cases you’d actually get in a real whiteboard or technical interview, and there’s an AI assistant that looks at your approach/efficiency and gives feedback so you can iterate without getting punished by obscure edge cases.
It’s still in beta and free right now, so if you try it, I’d appreciate any feedback.
1
u/Caponcapoffstillon Oct 23 '23
AI isn’t that advanced yet tbh. If you were gonna use AI you would have to model and train it on how to work these questions and answer them. At that point you’d have the proper work experience and prob wouldn’t even need those leetcode problems.
For now, the best you can do is prob use a leetcode extension that pulls up a solution video for your question through posted solutions like Neetcode or something.
1
u/AModeratelyFunnyGuy Oct 23 '23
There isn't a bright-line between "edge case" and "general case", at least not in general.
You're probably right that in many interviews you could get away without handling some specific edge cases, but I strongly disagree that therefore you should optimize your practice to not worry about them. If it doesn't take you a non-trivial amount of time to handle an edge case, then either you haven't really solved the problem or it's not really an edge case.
Get in the habit of enumerating edge cases right away and handling them in your code, most interviewers will appreciate that.
0
u/listeningSaint Oct 23 '23 edited Oct 23 '23
sure, just dm'ed you a link, there's a waitlist though, I'd say you'll get access within a week or two.
u/niclis do you have an interview coming up soon?
If so, I can fast track your access.
I think you'll find this Discord useful for optimising your tech interview prep. I like that you're trying to simulate real interview conditions in your prep, it's one of the things I strongly advise i.e. Practice under realistic conditions makes perfect
28
u/Chamrockk Oct 23 '23
I mean leetcode tells you how many tests you passed, so you know if your solution covers the general case or not based on how many tests it passed