Coding Mock Interview - Move All Zeros To End Of Array (with Google SWE)

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • Ace your interviews with Exponent’s Software Engineering interview course: bit.ly/3wTag6U
    In this software engineering mock interview, the interviewer presents a coding challenge to the interviewee: move all zeros in an integer array to the end while maintaining the relative order of non-zero elements.
    Want to practice peer-to-peer mock interviews just like this one? bit.ly/3Xmj8wq
    Chapters (Powered by ChapterMe) -
    00:00 - Intro
    00:42 - Move zeros in integer array
    01:54 - Automated sorting of arrays with zeros, stable ordering
    05:38 - Moving zeros and nonzeros in arrays
    09:38 - Function Move zeros, fill index, iterate over data
    11:11 - Fill index with zeros at end
    12:11 - Test cases for arrays with zeros
    13:10 - Example iterate over data, modify accordingly
    15:39 - Perfect interview, good challenges, improvement
    18:30 - Clarifying questions smart choice
    - Technical interview question at Google: • Video
    - Technical interview questions at Google: • Google Software Engine...
    - Design TikTok with Google SWE: • System Design Mock Int...
    - Negotiation tips: • How to Negotiate Your ...
    👉 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!

Komentáře • 3

  • @abhiyustho6247
    @abhiyustho6247 Před měsícem +4

    why not just return the data inside the function?

  • @hanshh3532
    @hanshh3532 Před měsícem +3

    Test case with empty array was missing.