r/codinginterview • • Mar 16 '25

Top 75 LeetCode Questions

7 Upvotes

These questions have been my go-to every time I'm prepping for a technical interview and it's amazing how frequent they or a variation of them come up in interviews. If you are short on time, I'd suggest to solve a couple from each group, etc.
https://leetcode.com/discuss/post/460599/blind-75-leetcode-questions-by-krishnade-9xev/


r/codinginterview • • Dec 18 '24

Why do I always get stuck in front of the interviewer during coding interviews? Suggest me tips how to perform.

7 Upvotes

I always get nervous in front of interviewer when he gives me even simple coding questions like reverse string, print fibonacci. Also I know logic, how it works. Many times hard question also I can solved easily on GFG or other platforms. But in front of interviewer I always get stuck. That's why I am not able to clear the basic technical interview.


r/codinginterview • • Oct 26 '23

How to actually prepare for tech interviews in 2023 ?

7 Upvotes

With so much of roadmaps like NeetCode, LeetCode, Blind75, Grind75 etc. And so many system design cheatsheets, primers etc. With plethora of resources available online, it's very easy to get lost on where to start and how to actually progress. Inspite of completing the above, it's not uncommon to face a whole fresh question with a really new pattern in an interview. Where will this actually start and end ? I read that finding patterns to solve these problems help, but the issue is the patterns are endless.

All this kinda messes up the preparation and helps little to none.

Any suggestions on how to start and go about it will help.


r/codinginterview • • Feb 13 '23

Fell ass backwards into a Google Frontend interview. Help?

7 Upvotes

Basically what the title says. I was recently laid off from a fairly big company like so many of us. I work(ed) in frontend but I basically just do web UI work all day and never build anything more complex than a SPA. I have never studied computer science and basically taught myself everything I know by watching YouTube videos about React etc. and it has served me very well. I’m a quick learner but definitely not a 10,000x engineer.

A recruiter reached out to me and asked me if I was interested in interviewing with Google (specifically for Cloud). I said yes, and we did an initial phone/intake call. The technical interview is not scheduled yet. She said once she emails me about a role I have 24 hours to indicate my availability but can schedule it up to 3 weeks out. I’m assuming it will be a week or two before that happens, so I probably have 4-5 weeks to prepare.

She told me to be prepared to write 30 lines of code in a Google doc in 45 minutes while explaining my rationale to the interviewer. She said I could use the language I know best, so I’ll be using JavaScript.

I know my chances of getting through this interview are extremely slim based on my background and total lack of knowledge on everything related to algorithms and data structures. Extremely slim. They sent over a study guide and I’ve literally never heard of more than half the stuff on it.

However, I am out of work, I’ve sent out no fewer than 130 applications, and somehow the only company that has wanted to interview me so far is Google(? this is wildly hilarious to me, too).

Please help. How can I prepare? Is there a course somewhere I can do start to finish? I’ll pay if necessary.


r/codinginterview • • Aug 16 '22

My cheat code for writing pseudocode during Interviews

7 Upvotes

I have noticed a good improvement in my speed since I started writing pseudocode. I also noticed that only a few places in a particular type of questions where I actually get bugs or errors. For every problem I approach, I now do "pseudocode-mode" where I am just writing comments. In this I try to determine the key conditions so I can later just copy paste them when writing code.

I end up spending around 15-20 minutes on medium problems just to write this pseudocode. I have seen my coding speed increase and reduced number of bugs.

Sharing my notes incase someone else finds it useful or if you have suggestions to make it more memorizable

https://neveroddoreven-08.notion.site/Hacks-for-being-code-complete-cbba9852d05c4f068ddfdbc7f45823a0


r/codinginterview • • May 24 '22

15 Days of DSA

7 Upvotes

My team at Pieces is launching a 15 Days of Code series centered around preparing you to ace your interview coding questions.

We'll specifically deep dive around Data Structures and Algorithms, and the scenarios are based on the most-asked FAANG coding questions sourced from ex-Amazon, Google, Adobe, and Microsoft devs.

We've put a lot of work into ensuring it's useful, so feel free to register here - https://forms.gle/p4RStdXpFtvJD1VC6

P.S. It’s absolutely FREE of cost!


r/codinginterview • • Jan 01 '22

I have been working on this app for a few months now and continuing to. There is still a lot a need to do but I am planning to release it in February.

7 Upvotes

r/codinginterview • • Jul 22 '21

Paypal Interview Question 2021 | Paypal Coding Questions

7 Upvotes

Paypal Interview Question  / Paypal Interview Experience 

PayPal Recruitment process contains 4 rounds .

  1. Online Test

  2. Technical Interview First round

  3. Technical Interview second round

  4. Managerial/HR round

Online Test of PayPal : This round was done on hackerrank, consisted of two question, 14 test cases each. Nearly 40 people got both the questions but only 13 were shortlisted based on cgpa, so it is important to have a good cgpa.

**PayPal Coding Questions:**Linking the two questions - "https://leetcode.com/problems/count-vowels-permutation/" & "https://www.geeksforgeeks.org/check-if-any-permutation-of-a-large-number-is-divisible-by-8/"

First Round  of Paypal Interview : I was asked about 3-4 easy DSA questions from BST, arrays, Maths, Linked List and had to code few of them. Later she proceeded to ask OOPs questions and examples on its implementation. Since I was from EEE she didn't ask OS or Networking but my friends from CS/IT did get asked. The whole interview was about 1 hour.

Second Round of PayPal Interview : About 8 people got shortlisted from First round. I was asked 2 DSA question, easy- medium diffculty,

one was kandane algorithm, another one was a 2 pointer question. (both are really famous questions). I initially had to explain my algorithm with examples, He was happy with my solutions so I was asked to code them.

Later he asked me if this was my first interview for placements, I told no, and he asked me which company. He asked me what went wrong, I said I went to the last round and it went really well and still didn't get selected. he started to consolidate me( which was pretty nice of himXD). Later I was asked about internship, I did get a hardware internship but it got cancelled, so he asked me why I'm switching my stream. He told me to explain one of my projects( I had done ML and embedded projects ). I explained one of my projects in great detail. He seemed impressed. This was 1 hour interview

Last Round/ HM Round of PayPal: 4 got shortlisted for this round. Managerial Round is similar to HR round, but they ask few Technical questions too. Interviewer seemed pretty chill guy, so i managed to crack a lame joke on my introduction ( he laughed xP), if you are thinking to do this, it really depends on the interviewer so do be careful.

We had casual talk. Later he asked me why I'm trying for software companies rather than hardware. He told me to explain about merge sort and code it, I explained what happens in that, what is the best/aver/the worst case, and code it. Later I was asked to explain one of my projects I explained one of my projects, explained it in great detail I also made a pun while explaining, he caught it and similedxD. He was really happy, ending it on a good note. Later I asked a few questions. At the end of all this he said "hope to meet you soon"(xD).

For coding questions you can visit this HERE


r/codinginterview • • Oct 08 '20

Want to share Interview Preparation Courses

7 Upvotes

I have organized some of the best interview preparation courses like:

  1. AlgoExpert

  2. SystemsExpert

  3. Grokking OOD

  4. Grokking The Coding Interview

  5. Coderust: Hacking The Coding Interview

  6. Grokking Dynamic Programming Patterns

  7. Grokking the System Design Interview

  8. Gaurav Sen: System Design

  9. TechSeries dev - AlgoPro, Tech Interview Pro

  10. BackToBackSWE

  11. CodeWithMosh

  12. InterviewCake

  13. InterviewCamp

  14. Applied Course

  15. InterviewEspresso

  16. SimpleProgrammer

And some other courses. DM me if you are interested to have these courses.


r/codinginterview • • Sep 16 '20

Kadane's Algorithm and the Maximum Subarray Problem - LeetCode 53

Thumbnail
youtu.be
7 Upvotes

r/codinginterview • • Jul 22 '20

what has been the most frequent question that you have been asked during the technical interview/coding challenge as a software/web engineer?

7 Upvotes

I am based in the UK.

Mine has been the followings in order of most frequent to less frequent::

Finding target in Maze: used DFS, Dijkstra, A*

Roman numeral converter

Fib and Fizz buzz

For technical questions I received the followings in order of most frequent to less frequent:

What is SOLID

What are race conditions ? what is Deadlock?

When did you use indexes in the Database? why? pros and cons of indexes

what is the definition of microservices? ( I don't know an acceptable answer to this one appreciate an answer!)

what are integration tests?

React/Redux specific:

what are middlewares in Redux?

how do you render only part of you react based page? ( selectors?)


r/codinginterview • • Jun 21 '20

Importance of Confidence in Approaching the Unknown

7 Upvotes

This question was asked in a software job interview.

Can you connect each small box on the top with its same-letter mate on the bottom with paths that do not cross one another, nor leave the boundaries of the large box?


r/codinginterview • • Jun 05 '20

LC 5: Longest Palindromic Substring (WITH EXPLANATION)

Thumbnail
youtu.be
7 Upvotes

r/codinginterview • • May 16 '20

Coding challenges for absolute beginners

7 Upvotes

Hi,

I want to share with you 2 PDF booklets with coding challenges (and solutions) for absolute beginners.

I don't want to set false expectations. These coding challenges are very basic and intended as a starter (probably not enough for a coding interview). Once completed, you can move ahead to other sites that provide more advanced challenges.

https://codeguppy.com/site/download/50_coding_challenges.pdf

https://codeguppy.com/site/download/recursive_problems.pdf

Happy coding!


r/codinginterview • • Feb 20 '20

Whiteboarding Jump Game II along with class doubts

Post image
7 Upvotes

r/codinginterview • • Jan 14 '20

Why coding assessments are so difficult for me? Why can’t I crack them? I practice enough and get all tests running during my practice. But, given a time frame in the online coding assessments I always fail. This is not letting me crack any interviews. Any suggestions please.

7 Upvotes

I don’t fail to write the code. I fail to get all my tests pass.


r/codinginterview • • Feb 12 '19

The 30-minute guide to rocking your next coding interview

Thumbnail
medium.freecodecamp.org
7 Upvotes

r/codinginterview • • Jan 10 '19

How to deal with Imposter Syndrome while prepping for tech interviews

7 Upvotes

So just a little bit of background, I graduated from university in 2016 and have been working for one company ever since as a Software Developer. To be honest, I am not the best developer...in fact, when I was a college student, it took me a while to understand concepts and apply it, but I got by because I like working in tech.

So fast forward to now, I feel really intimidated by tech interviews. I'm not good at solving a problem on the spot; as I said earlier, I need some time to think about the problem before solving it. I've been practicing problems through LeetCode, HackerRank, etc, but I get frustrated easily when I don't get easy to medium problems right away. I feel really dumb and the imposter syndrome hits me really hard. I know that with more practice, it'll become easier and I just need to "tough" it out and keep going, but sometimes I feel unmotivated knowing that I am struggling...

Do you guys have any advice on how to prep for interviews for someone in my position? Do you guys have any techniques you use to break down coding problems? How do you deal with Imposter Syndrome?


r/codinginterview • • May 07 '15

Useful Interview Preparation Resources

7 Upvotes

r/codinginterview • • Nov 17 '25

Uber Interview Experience - Senior Software Engineer (L5A)

Thumbnail reddit.com
6 Upvotes

r/codinginterview • • Mar 09 '25

Deep dive into O(log n) Time Complexity

6 Upvotes

Hey everyone!

I've been struggling to really grok logarithmic time complexity (O(log n)) for a while. It's easy to understand the binary search example, but I wanted to go deeper.

So, I decided to study & write an article where I try to explain my understanding.

Deep dive into O(log n) Time Complexity

The article covers:

  • My simplified explanation of logarithms (if you're a beginner, this might help!)

  • The "divide and conquer" idea.

  • Binary search... of course!

  • Then I dig into B-Trees. This is where it clicked for me. Seeing how the branching factor (the logarithmic base) directly impacts database performance was a real eye-opener. It showed me that Big O is just one piece of the puzzle.

  • Some limitations to keep in mind.

Deep dive into O(log n) Time Complexity


r/codinginterview • • Oct 16 '24

I made this tool that teaches you any leetcode pattern

6 Upvotes

If you're also a visual learner, I think you'll find this helpful. In the past I struggled with understanding the intuition behind ideas like DP, recursion, etc.. so I needed to view many examples to make things click.

This tool should be helpful for those who also learn better with visuals and interactive material.

Type in any leetcode pattern (like sliding window or two pointers) and it will begin to teach you. If you're confused, simply ask a question and it will update the content.

Site: withmarble.io/learn

This tool is part of this Leetcode extension (Marble)


r/codinginterview • • Sep 08 '24

algo-ds.com

6 Upvotes

Hi all,

I created https://algo-ds.com/ to help myself and others who are struggling with their coding interviews.

Any feedback is much appreciated.


r/codinginterview • • Jan 28 '24

Interview question: How to Compute Max Value with Linear Time Complexity When 'k' Is Not Fixed?

6 Upvotes

Body: Hello! I'm stuck on a coding interview problem and could really use some fresh perspectives. I'm trying to figure out a linear time solution (`Theta(n)`) for a problem that's a bit tricky due to its varying parameters.

Here's the Challenge: Picture a line of creatures, each with its own strength and a unique ability. We have two lists: `x` for their strengths and `k` for the number of creatures in front of each (including itself) they can turn to for help.

Example to Illustrate: Let's say `x = [5, 10, 7, 2, 20]` and `k = [1, 2, 1, 3, 2]`. We need to find the maximum strength each creature can muster. For the fourth creature, it looks at the 3 creatures (`k[3] = 3`) - itself and the two creatures before it, considers the strengths `[10, 7, 2]`, and realizes it can leverage a maximum strength of `10`.

Our goal is to output a list where each element is this maximum accessible strength for each creature.

Where I'm Stuck: Here's my Python attempt so far:

def calculate_ output(x, k):
    output = []
    for i in range(len(x)):
        start_index = max(0, i - k[i])
        end_index = i + 1
        output.append(max(x[start_index:end_index]))
    return output

This isn't efficient. The nested iterations due to `max` make it O(n^2). For each creature, we slice and dice through the list based on `k`, which isn't ideal.

Looking for Advice: I'm hitting a wall here. Maybe there's a way to do this with a sliding window, but the variable range in `k` throws a wrench in the works. Any thoughts on data structures or algorithms to make this linear?

Thanks in advance! Looking forward to your insights.


r/codinginterview • • Feb 01 '23

What should I focus on most as a Bootcamp grad in Software Engineering interviews?

6 Upvotes

Hi all,

I'm close to completing a coding bootcamp and am curious to hear about any tips other grads or engineers have in regards to interview prep for your first Dev job (I'm hoping to stick to Frontend specifically).

I'm trying to switch careers after Tech Recruiting after a few years with 1 large Search company, 1 real estate data company and an EV company most recently. Im familiar with what industry level Engineers are asked especially since I've sat in on interviews and interview debriefs with my teams. That being said, entry level/early talent Dev's were always a completely different recruiting team with different processes at each company I've worked at.

Im curious to know what is most important when you're interviewing Junior dev?

Any constructive help/feedback is much appreciated!