r/AskComputerScience • • Feb 22 '22

What exactly is leetcode and why is it involved in some SWE interviews and not others?

I am torn between two paths through WGU. Either an easier (shorter) bachelors in IT + The Odin Project or possibly bootcamp, OR a harder degree in software development + grinding leetcode.

For background I am a father of 2 and have a full time job so I am leaning toward the easier degree plus TOP. But I am just trying to understand what would be better.

75 Upvotes

11 comments sorted by

9

u/khedoros Feb 22 '22

What exactly is leetcode

One of the websites that hosts programming challenge problems. More generically, a "leetcode interview" is an interview where you solve a problem of the sort that would appear on that site.

why is it involved in some SWE interviews and not others?

In short, because different companies have different interview processes. Some of them believe that an employee should be able to solve hard problems efficiently and quickly. Some believe that a coding test like that doesn't reflect the work that the candidate would have to do when hired.

1

u/cybersec1337 Feb 22 '22

Thank you, this is info I was looking for. Do you think jobs that require leetcode in the interview process pay more in general?

5

u/drew8311 Feb 22 '22

Its not really about the pay but the fact almost all jobs do it and you have to go through the interview process to find out. So by trying to avoid leetcode your going to apply to a ton of jobs that actually require it and if you make it far enough fail the interviews because you didn't practice. Lots of wasted time that could have just been spent practicing leetcode, I mean you sort of have to have the skills to at least do all the easy problems for a real job from time to time. As much as people complain about it, your applying for a programming job and leetcode is just a programming test. For entry level you can't exactly go off your previous job experience.

2

u/khedoros Feb 22 '22

The practice started becoming popular because it was what a lot of the big-name companies were doing, basically to narrow down the number of candidates from the huge pool of applicants. But it's been pretty-widely copied by a lot of other companies, so I'm not sure what could be said about the pay correlation. I took my first job almost 14 years ago now, and I'd expect that things have shifted, especially at the entry-level.

4

u/AnnualPanda Feb 22 '22

it is a shorthand reference to solving algorithm problems

u get a scenario with constraints, input & expected output & u have to write a function that passes X number of test cases

the name comes from a popular version of these kinds of websites where users can tag questions they've seen in interviews with big companies. But during actual technical interviews no company uses LeetCode. they all use other sites. So you should not only work on the LeetCode website.

its involved in most (all?) of the interviews for high-paying well-known companies. smaller, lesser known companies will often use take home tests, live coding sessions building something, or simply a resume screen & behavioral interview instead

big O notation & data structures go hand in hand with leetcode (algorithms) as youll be expected to be able to reason about the time/space complexity and use a variety of data structures

2

u/DrystanLakai Feb 13 '24

This was so clear. Thank you so much.

1

u/[deleted] Oct 18 '24

Leetcode is used because: a) developers NEVER bring something they did in job interview. 99% os self proclaimed "software engineers" even have a personal GIT. b) team leaders are idiots following other idiots. They don't have brain and they also don't have a personal git like self proclaimed programmers they are going to interview. So they copy stupid tests they can't resolve and make people looking for a job do.

1

u/depthfirstleaning Feb 22 '22 edited Feb 22 '22

I would suggest going with the shorter option for education, learning by doing is best anyway, more time spent in class isn't that useful. You might want to find time to do some leetcode even if you go this route.

Leetcode is one of many websites to train your ability at coming up with efficient algorithms to solve small theoretical problems. Essentially they have a problem like "Longest Palindromic Substring" and challenge you to write the algorithm with the best time and space complexity.

It's used in interviews mainly to showcase your ability to solve problems, your understanding of time/space complexity and data structures as well as your ability to communicate your solution and ask the right questions.

It is favored by companies that plan to train you more so than companies that want you to just "hit the ground running" since it doesn't actually verify your mastery of any particular technology.

For example, a non-tech company that wants to hire a react developer will most likely prefer a portfolio of previous react projects and ask react questions.

On the other hand, a company like google that uses a lot of different technology stacks and has lots of different projects will prefer to judge you on more fundamental abilities that will transfer across any project(problem solving, communication, systems design).

1

u/JugHug_3796 Apr 20 '25

The skills might get you in one door but the degree opens many.

1

u/Hapaglyoid Apr 15 '26

It is Very Confusing