Google Software Engineering Interview: Binary Tree Maximum Path

  Рет қаралды 13,763

Exponent

Exponent

Күн бұрын

Don't leave your software engineering career path to chance. Make sure you're interview-ready with Exponent's software developer interview prep course. Start free. bit.ly/4eMtImU
Watch our technical coding mock interview with Angie and Simon Ayzman (Software Engineer at Google) as Angie asks, "Given the root of a binary tree of integers, return the maximum path sum."
Simon spends time drawing out a potential tree path to understand the problem. He asks clarifying questions about negative numbers and the structure of the tree overall.
Learn more about Simon here: www.simonayzman.com/
Chapters -
00:00 - Introduction
00:54 - Question
01:07 - Clarifying questions
06:02 - Answer
15:09 - Test cases
24:05 - Interview analysis
Watch more videos here:
- Amazon SWE answers system design interview question: • Amazon System Design I...
- Google SWE answers algorithms interview question: • Google Software Engine...
- Google TPM answers Tiktok system design interview question: • System Design Mock Int...
- Microsoft SWE answers algorithms interview question: • Microsoft Software Eng...
👉 Subscribe to our channel: bit.ly/exponentyt
📧 Sign up for our email newsletter with PM interview lessons: bit.ly/exponentpm
🕊️ Follow us on Twitter: bit.ly/exptweet
💙 Like us on Facebook for special discounts: bit.ly/exponentfb
📷 Check us out on Instagram: bit.ly/exponentig
ABOUT US:
Did you enjoy this interview question and answer? Want to land your dream career? Exponent is an online community, course, and coaching platform to help you ace your upcoming interview. Exponent has helped people land their dream careers at companies like Google, Microsoft, Amazon, and high-growth startups. Exponent is currently licensed by Stanford, Yale, UW, and others.
Our courses include interview lessons, questions, and complete answers with video walkthroughs. Get access to hours of real interview videos, where we analyze what went right or wrong, as well as our 1000+ community of expert coaches and industry professionals, to help you get your dream job and more!
#softwareengineer #softwareengineering #tech #software #entrepreneurship #product #softwaredeveloper

Пікірлер: 13
@tryexponent
@tryexponent 2 жыл бұрын
Don't leave your software engineering career path to chance. Make sure you're interview-ready with Exponent's software developer interview prep course. Start free. bit.ly/4eMtImU
@simonayzman
@simonayzman 2 жыл бұрын
Great to be back!
@devs2530
@devs2530 2 жыл бұрын
I liked the thought process.
@strawberriesandcream2863
@strawberriesandcream2863 8 ай бұрын
He’s really good at interviewing! Loved seeing how the solution came together.
@atanuroy911
@atanuroy911 2 жыл бұрын
Ah man. I really wish to reach that level of thought process. Feels like I need a mentor.
@tryexponent
@tryexponent 2 жыл бұрын
Check out Exponent's list of expert coaches and mentors to help you think about questions like this! www.tryexponent.com/coaching
@atanuroy911
@atanuroy911 2 жыл бұрын
@@tryexponent for free would be great cuz coming from a third world country its not possible to pay that much
@ThaoPhuong-ln9vc
@ThaoPhuong-ln9vc Жыл бұрын
@@tryexponent Does Exponent provide courses and solutions in Python only?
@abubalo
@abubalo 2 жыл бұрын
Great interview
@harisjalal7575
@harisjalal7575 2 жыл бұрын
Good job Simon!
@sergejsvisockis
@sergejsvisockis Жыл бұрын
I wish I could see the times when Google would give a real world coding tasks instead of some kind of unrealistic algebra...
@lucaspinto2450
@lucaspinto2450 Жыл бұрын
What if they’re all negative? The max 0 only captures some negatives
@hemanth121
@hemanth121 Жыл бұрын
class Solution { public int maxPathSum(TreeNode root) { this.sol(root); return this.max; } int max = Integer.MIN_VALUE; public int sol(TreeNode root) { if(root == null) { return -(int)1e7; } int sum1 = sol(root.right); int sum2 = sol(root.left); int max1 = Math.max(root.val,Math.max(root.val + sum1,root.val + sum2)); max = Math.max(max1,Math.max(max,root.val + sum1 + sum2)); return max1; } }
Google Coding Mock Interview: Buddy Strings
25:41
Exponent
Рет қаралды 6 М.
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 24 МЛН
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 18 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 7 МЛН
Software Engineering Mock Interview: Contiguous Subarray Sums
35:04
Most Tech Interview Prep is GARBAGE. (From a Principal Engineer at Amazon)
12:57
Google system design interview: Design Spotify (with ex-Google EM)
42:13
IGotAnOffer: Engineering
Рет қаралды 1 МЛН
System Design Interview: Design Amazon Prime Video
26:53
Exponent
Рет қаралды 83 М.
Google Coding Mock Interview: Chess N-Queens problem
29:19
Exponent
Рет қаралды 4,9 М.
Amazon System Design Interview: Design Parking Garage
29:59
Exponent
Рет қаралды 1,4 МЛН
Google Coding Interview With A Facebook Software Engineer
49:59
Clément Mihailescu
Рет қаралды 924 М.
Binary Tree Maximum Path Sum (Animated Walkthrough) (LeetCode)
11:43
AlgosWithMichael
Рет қаралды 21 М.
Software Engineering Interns Be Like
4:12
Nicholas T.
Рет қаралды 1,6 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 24 МЛН