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
@simonayzman2 жыл бұрын
Great to be back!
@devs25302 жыл бұрын
I liked the thought process.
@strawberriesandcream2863 Жыл бұрын
He’s really good at interviewing! Loved seeing how the solution came together.
@atanuroy9112 жыл бұрын
Ah man. I really wish to reach that level of thought process. Feels like I need a mentor.
@tryexponent2 жыл бұрын
Check out Exponent's list of expert coaches and mentors to help you think about questions like this! www.tryexponent.com/coaching
@atanuroy9112 жыл бұрын
@@tryexponent for free would be great cuz coming from a third world country its not possible to pay that much
@ThaoPhuong-ln9vc2 жыл бұрын
@@tryexponent Does Exponent provide courses and solutions in Python only?
@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; } }
@sergejsvisockis2 жыл бұрын
I wish I could see the times when Google would give a real world coding tasks instead of some kind of unrealistic algebra...
@abubalo2 жыл бұрын
Great interview
@harisjalal75752 жыл бұрын
Good job Simon!
@lucaspinto24502 жыл бұрын
What if they’re all negative? The max 0 only captures some negatives