Amazon SDE Mock Interview: Find the Median of Two Sorted Arrays

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/3LcNytD
Parth Khanna, a software development engineer at Amazon, answers the software engineering mock interview question, "Find the median of two sorted arrays."
Your software engineering technical interview will likely include questions that ask you to work with arrays.
Learn more about Parth here: / parthkhanna150
Chapters -
00:00 - Introduction
00:48 - Question
00:58 - Clarifying questions
02:06 - Answer
23:00 - Test cases
42: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
🕊️ 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
📹 Watch us on TikTok: bit.ly/exponenttikttok
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. Access hours of real interview videos, where we analyze what went right or wrong, and our 1000+ community of expert coaches and industry professionals, to help you get your dream job and more!
#softwareengineer #softwareengineering #tech #software #entrepreneurship #softwaredevelopment #codinginterview

Пікірлер: 16

  • @tryexponent
    @tryexponent2 жыл бұрын

    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/3LcNytD

  • @jalbers3150
    @jalbers31502 жыл бұрын

    I appreciate this one because it’s reflective of a real experience. He struggled his way to an answer. Not just blazing through with an optimal solution because he previously had it memorized.

  • @gunahawk6893

    @gunahawk6893

    Жыл бұрын

    Not getting u, are u saying he has memorized thr solution?

  • @elmeroranchero

    @elmeroranchero

    5 ай бұрын

    @@gunahawk6893 no hire for you since you couldn't understand this

  • @ezeamadi885
    @ezeamadi885 Жыл бұрын

    I appreciate that this is a reflective nature of how real world coding interviews are. Most times, they make it seem like robots or people that have memorized all Leetcode solutions are the ones that are supposed to work for the FAANG companies or pass their coding challenges.

  • @karlnassar8646
    @karlnassar86462 жыл бұрын

    what is the time complexity of this solution? is it O(log n)?

  • @t0ddu
    @t0ddu2 жыл бұрын

    saw the title, recalled Strivers SDE Sheet and said thank you to that God

  • @blasttrash

    @blasttrash

    2 жыл бұрын

    what is that?

  • @gunahawk6893
    @gunahawk6893 Жыл бұрын

    I wonder what the interviewer is noting down

  • @CitizenCayne
    @CitizenCayneАй бұрын

    And then she asked what happen if it is even number of elements and before that the arrays are different sizes. She is changing the question before it is answered,

  • @alexnice2221
    @alexnice2221 Жыл бұрын

    LC hard question

  • @CitizenCayne
    @CitizenCayneАй бұрын

    The question was not properly expressed because it leads to more questions: "Given two sorted arrays of different sizes, return the median of the two sorted arrays". 1) return to different answers, one for each array? or 2) the median of the combined arrays? It is hard unfair since interviewers prepare their questions in advance for weeks and check their answer and have papers and notes while the interviewee does not. Make THAT make sense.

  • @gunahawk6893
    @gunahawk6893 Жыл бұрын

    This is a naive approach, we could use binary search to optimize this further

  • @tliu7179
    @tliu71792 жыл бұрын

    A big no hire to me. Bad coding style and barely finished it with so many hints

  • @JunaSSB

    @JunaSSB

    2 жыл бұрын

    still works at amazon though

  • @gunahawk6893

    @gunahawk6893

    Жыл бұрын

    This question is hard one