Ema interview experience Real time questions & tips from candidates to crack your interview

AI Resident

Ema
upvote
share-icon
1 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Application story
I got to know about this opportunity through a friend of mine from IIT BHU. I applied through their portal in December 2025 and received a follow-up to schedule an interview in early January this year.
Why selected/rejected for the role?
I believe I was rejected because I was unable to answer some of the ML questions they asked. Also, the interview had less emphasis on DSA compared to typical SDE companies, and they seemed to expect candidates to have an ML background.
Preparation
Duration: 1 month
Topics: DSA, Graph, DP, Greedy Algorithm, Puzzles
Tip
Tip

Tip 1: Since this was an AI residency program, ML courses would be highly beneficial.
Tip 2: Build a strong foundation in probability.

Application process
Where: Company Website
Eligibility: NA, (Salary package: 35 LPA)
Resume Tip
Resume tip

Tip 1: Include ML coursework on your resume. I had a DSAI minor at the time, which likely helped.
Tip 2: Highlight ML projects on your resume.

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date13 Jan 2026
Coding problem2

I was asked some ML questions and why I wanted to work at an AI startup. After I was unable to answer the ML questions, he asked me a simple DSA problem, which I was able to solve.

1. Detect Cycle In A Directed Graph

Moderate
30m average time
75% success
0/80
Asked in companies
MicrosoftAdobeAmazon

You are given a directed graph having ‘N’ nodes. A matrix ‘EDGES’ of size M x 2 is given which represents the ‘M’ edges such that there is an edge directed from node EDGES[i][0] to node EDGES[i][1].

Find whether the graph contains a cycle or not, return true if a cycle is present in the given directed graph else return false.

For Example :
In the following directed graph has a cycle i.e. B->C->E->D->B.

alt text

Note :
1. The cycle must contain at least two nodes.
2. It is guaranteed that the given graph has no self-loops in the graph.
3. The graph may or may not be connected.
4. Nodes are numbered from 1 to N.
5. Your solution will run on multiple test cases. If you are using global variables make sure to clear them.
Try solving now

2. Machine Learning

  • In an agentic AI system like Ema’s that handles long-running conversations and performs multiple tool-calling steps, explain why KV (Key-Value) caching is important for efficient inference. Discuss how it helps with maintaining context across interactions, reducing recomputation, and improving response speed. Also describe the trade-offs involved, particularly in terms of increased memory usage, scalability challenges, and latency optimization.
  • Standard self-attention has a memory complexity of O(n2)O(n^2)O(n2) with respect to sequence length. Explain how FlashAttention optimizes the attention mechanism to reduce memory overhead and improve efficiency. Why is this considered a major breakthrough for deploying agentic AI systems that require long context windows?
  • In Reinforcement Learning, explain the key components of a Markov Decision Process (MDP) and their roles in defining an environment for decision-making.
Problem approach

Tip 1: Experience with agentic AI.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which traversal uses a queue as its primary data structure?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
5228 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
1171 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6800 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3868 views
0 comments
0 upvotes