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.
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.
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.
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
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.
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.
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).
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?
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.
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?
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.
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.
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.
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.
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!