Amazon & Apple Interview Problem
Skills:
Systems Design Basics90%
Key Takeaways
Sahil & Sarra solves an Amazon and Apple interview problem and shares their approach and insights for systems design positions
Full Transcript
this coding problem was asked by Amazon Microsoft and Apple let's see if you can solve it you're given an array of numbers you need to find the subarray with the largest sum and return the sum for example in this array the subarray containing 4 -1 2 1 has the largest sum which is six pause the video to think before I give you the answer to solve this problem we can use kadan's algorithm it's a dynamic programming approach where we keep track of the maximum sum subarray ending at each index in the array if the maximum sum of the subarray ending at current index minus one is negative we should start a new subarray at current index otherwise we should extend the maximum sum subarray ending at current index minus one the overall maximum sum subarray will be the maximum of all the maximum sum subarrays ending at each index the time complexity of this solution is order n if you want to get a weekly coding problem asked by top tech companies in your email you can sign up for my free email newsletter at interview.io
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Sahil & Sarra · Sahil & Sarra · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Product Management Internship - EASIEST Path to Become a PM
Sahil & Sarra
I Quit $200,000 Software Engineer Job at Amazon
Sahil & Sarra
What do I do as a Product Manager? - Product Manager Role
Sahil & Sarra
CHEAT SHEET that I Used to Crack Product Manager Interview at MICROSOFT
Sahil & Sarra
Why Tech Workers are Getting RICH💰💰 #shorts
Sahil & Sarra
Why Is Everyone Quitting Their Six Figure Tech Job?
Sahil & Sarra
5 Years of Coding - Everything I've Learned
Sahil & Sarra
5 Highest Paying Tech Companies 💸💸 #shorts
Sahil & Sarra
How I TRIPLED My Salary by Joining TECH
Sahil & Sarra
How I Became a Software Engineer Without a Computer Science Degree
Sahil & Sarra
Top 5 non-CODING Tech Jobs that Pay $100,000+
Sahil & Sarra
Top 5 Tech Jobs That Pay $100,000+ Without Coding
Sahil & Sarra
FASTEST Way to Learn Coding and ACTUALLY Get a Job
Sahil & Sarra
Coding Interviews Are Easier Than You Think
Sahil & Sarra
THIS is Why Software Engineers Make So Much Money
Sahil & Sarra
System Design Interviews are a SCAM
Sahil & Sarra
I got $50,000 more when I negotiated my tech salary
Sahil & Sarra
How I would learn to code in (If I could start over)
Sahil & Sarra
Google is not the best tech company
Sahil & Sarra
How YouTube is killing your programming career
Sahil & Sarra
This is Why Your Resume Gets Rejected
Sahil & Sarra
How I Hacked My Mind To Learn Coding
Sahil & Sarra
FASTEST Way to Learn Data Science and ACTUALLY Get a Job
Sahil & Sarra
FASTEST Way to Learn Web Development and ACTUALLY Get a Job
Sahil & Sarra
Why Most People FAIL to Learn Coding
Sahil & Sarra
Google Engineer reveals his darkest secrets
Sahil & Sarra
Become a better Programmer in 8 minutes
Sahil & Sarra
Start Behaving Like a Programmer
Sahil & Sarra
The Resume That Got Me Into Google
Sahil & Sarra
I solved 541 Leetcode problems. But you need only 150.
Sahil & Sarra
Why Good Programmers FAIL Coding Interviews
Sahil & Sarra
Can you solve this problem in one line?
Sahil & Sarra
Puzzles for Software Engineers - Microsoft #1
Sahil & Sarra
Puzzles for Software Engineers - Amazon #1
Sahil & Sarra
Layoffs = The END of Software Engineering?
Sahil & Sarra
Puzzles for Software Engineers - Apple #1
Sahil & Sarra
Puzzles for Software Engineers - Amazon #2
Sahil & Sarra
Puzzles for Software Engineers - Microsoft #2
Sahil & Sarra
Puzzles for Software Engineers - Apple #2
Sahil & Sarra
2-Minute Rule to Learn Coding - Atomic Habits
Sahil & Sarra
2 Minute Rule for Coding
Sahil & Sarra
5 Math Skills Every Programmer Needs
Sahil & Sarra
3 Developer Roadmaps That Actually Work
Sahil & Sarra
Cracked Google without a CS degree
Sahil & Sarra
Top 5 Coding Languages To Get a Job
Sahil & Sarra
4 Reasons Good Programmers FAIL Coding Interviews
Sahil & Sarra
Reality of Software Development
Sahil & Sarra
C is the grandmother of JavaScript
Sahil & Sarra
How to Hack Passwords
Sahil & Sarra
Learn Python with ChatGPT
Sahil & Sarra
Learn Web Development with ChatGPT
Sahil & Sarra
ChatGPT 2.0 aka GPT-4 is here!
Sahil & Sarra
7 things I wish I knew in my 20s
Sahil & Sarra
💸💸 $177,000,000 Coding Error
Sahil & Sarra
5 Google Search Secrets
Sahil & Sarra
QWERTY Keyboard Slows Your Typing 🤔
Sahil & Sarra
💰💰 Top 5 Highest Paying Jobs For Programmers
Sahil & Sarra
👩🏻💻 Top 5 Programming Languages
Sahil & Sarra
5 Steps to become a Full-Time Developer
Sahil & Sarra
Coding is NOT enough
Sahil & Sarra
More on: Systems Design Basics
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
The Hardest Part Of Microservices Is Undoing What Already Succeeded
Medium · Programming
What OOP Actually Buys You (And Why “Real World Modeling” Is a Lie)
Medium · Programming
Data Partitioning in System Design: Why Every Scalable Application Depends on It
Medium · Programming
Why Realtime Collaboration Is Harder Than It Looks?
Medium · JavaScript
🎓
Tutor Explanation
DeepCamp AI