Prepfully logo
  • Browse Coaches
  • Login
BetaTry Out Our New AI Mock Interviewer – Your Smartest Way to Ace Any Interview!Try Our AI Mock Interviewer
Try Now
NewRegister as a coach and get a $100 bonus on your first completed session if you're on the Prepfully Request for Coaches list.Coach $100 Bonus
Read More
LimitedSummer Deal: Heavy discounts on all Prepfully sessions.Summer Deal: Discounts
Book Now

Your AI Wingman for your next interview

The most comprehensive bank Interview Answer Review tooling available online.

Cutting-edge AI technology meets personalized feedback. Improve your interview answers with insightful guidance provided by a model trained against more than a million human-labelled interview answers.
  • Company rubrics
  • Role-level optimisations
  • Trained on 1mil+ answers
Coding
9 months ago
What is the most efficient way to implement the two sum problem using a hash table and ensure a O(n) time complexity?
Machine Learning Engineer

Shopify

TikTok

Palo Alto Networks

Get answer reviewed by AI
9 months ago
Coding
9 months ago
What's your method for unpacking a string with compounded parenthetical expressions like “2[a3[b]c]”?
Machine Learning Engineer

Shopify

Visa

Mapbox

Get answer reviewed by AI
9 months ago
ML Knowledge
9 months ago
In the context of XGBoost, what is a DMatrix, and how is it unique from other data structures in gradient boosting algorithms?
Machine Learning EngineerData Scientist
Reddit Logo

Reddit

TikTok

Zoox Logo

Zoox

Get answer reviewed by AI
9 months ago
ML Knowledge
9 months ago
How do you rectify the challenges posed by an imbalanced dataset?
Machine Learning Engineer
Microsoft Logo

Microsoft

Bloomberg Logo

Bloomberg

VMware Logo

VMware

Get answer reviewed by AI
9 months ago
Coding
9 months ago
Write a function that inputs 2 arrays and returns the root mean squared error for them.
Machine Learning EngineerData Scientist
Spotify Logo

Spotify

Instacart Logo

Instacart

Microsoft Logo

Microsoft

let's consider two vectors y and y_bis, the root mean square error between these two vectors is equal to the L2-norm between y and y_bis. in another words, let's consider z = y - y_bis. the root mean squared error corresponds to the square root of the sum square element of z.

I will code it in Python : 


first thing to have in mind is to code the sqrt function to compute square root of a number. for this purpose we use newton method.


def sqrt(x: float, epsilon: float = 1e-10) -> float:

    if x < 0:

        raise ValueError("Cannot compute square root of negative number.")

    if x == 0 or x == 1:

        return x


    guess = x / 2.0

    while abs(guess * guess - x) > epsilon:

        guess = (guess + x / guess) / 2.0

    return guess


now that we have the sqrt function we can define the root mean squared error function as :

def rmse(y: List[float], y_bis:List[float]) -> float:

    return sqrt(sum((y-y_bis)**2))


sum() is a native function in python.

Get answer reviewed by AI
9 months ago
System Design
9 months ago
Build a collaborative document editing platform like Google Docs.
Machine Learning Engineer
Verizon Logo

Verizon

Get answer reviewed by AI
9 months ago
ML Knowledge
9 months ago
Can you describe how a bounding box regressor functions within object detection models?
Machine Learning Engineer
Google Logo

Google

Snap Logo

Snap

Atlassian Logo

Atlassian

Get answer reviewed by AI
9 months ago
ML Knowledge
9 months ago
How do you ensure data integrity throughout the ETL process? Can you describe your approach?
Machine Learning Engineer
Snap Logo

Snap

Twitch Logo

Twitch

Meetup Logo

Meetup

Get answer reviewed by AI
9 months ago
System Design
9 months ago
Create a distributed system for managing task queues.
Machine Learning Engineer
Hitachi Logo

Hitachi

Get answer reviewed by AI
9 months ago
ML CaseML Knowledge
9 months ago
Provide an overview of the major differences between multidimensional and tabular models and explain which model is preferred by Azure analysis services?
Machine Learning Engineer
Netflix Logo

Netflix

Flexport Logo

Flexport

Fiverr Logo

Fiverr

Get answer reviewed by AI
9 months ago

Try Free AI Interview

Amazon logo

Amazon

Machine Learning Engineer

Prepare for Behavioral interview at Amazon

Behavioral
Google logo

Google

Machine Learning Engineer

Prepare for Behavioral interview at Google

Behavioral
Meta logo

Meta

Machine Learning Engineer

Prepare for Behavioral interview at Meta

Behavioral

Question of the week

We'll send you a weekly question to practice for:

Showing 3041 to 3050 of 25604 results

Previous303304305306307Next

*All interview questions are submitted by recent Machine Learning Engineer candidates, labelled and categorized by Prepfully, and then published after verification by current and ex-Machine Learning Engineer employees.

  • Company
  • FAQs
  • Contact Us
  • Become An Expert
  • Services
  • Practice Interviews
  • Interview Guides
  • Interview Questions
  • Watch Recorded Interviews
  • Gift sessions
  • AI Interview
  • Social
  • Twitter
  • Facebook
  • LinkedIn
  • YouTube
  • Legal
  • Terms & Conditions
  • Privacy Policy
  • Illustrations by Storyset

© 2025 Prepfully. All rights reserved.

Prepfully logo

Please log in to view more questions.

Not a member yet? Sign up for free.