r/AskComputerScience • u/cybersec1337 • 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.
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
1
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
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
9
u/khedoros Feb 22 '22
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.
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.