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

SDE - Intern

myKaarma
upvote
share-icon
4 rounds | 28 Coding problems

Interview preparation journey

expand-icon
Journey
I am Sameeksha, pursuing an IDD (BTech + MTech) in Engineering Physics at IIT BHU. Since my interests did not align with my branch courses, I learned most of the material on my own through YouTube.
Application story
Online Assessment: Three Sections Coding — 3 questions (one easy-medium, two medium-hard) Aptitude — 10 questions CS Fundamentals, OOP — 10 questions Shortlisted candidates were called for interviews, with the number of interviews varying from 2 to 4. I had three interview rounds.
Why selected/rejected for the role?
Ability to communicate clearly about my approach Ability to immediately think through a new problem and think out loud Positive attitude and high energy level throughout the interview
Preparation
Duration: 6 months
Topics: DSA, OOPS, OS, Web development for projects, Puzzles
Tip
Tip

Tip 1: Be thorough with the details on your resume. Only include projects you are confident about, and ensure they accurately represent your skills and experience.
Tip 2: While practicing problem-solving, avoid looking at solutions immediately. Keep trying, take hints, and read the explanations, but never copy-paste the code.

Application process
Where: Campus
Eligibility: Above 8 CGPA
Resume Tip
Resume tip

Tip 1: Do not include anything in your resume that you are not comfortable with.
Tip 2: Proofread everything carefully and avoid typos or syntactical errors in your resume, as they create a bad first impression.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date8 Aug 2023
Coding problem12

3 Coding questions 
and 20 MCQs

1. Networking

Which networking device operates at the Network layer of the OSI model and is used to forward packets between different networks?

  1. Hub
  2. Switch
  3. Router
  4. Proxy Server

2. Operating System

Differences between user-level threads and kernel-level threads in operating systems. (Learn)

3. Operating System

The turnaround time for process P2 using a preemptive priority CPU scheduling algorithm is (in ms):
Process Number Arrival Time Burst Time Priority

  1. P1 0 ms 5 ms 10
  2. P2 1 ms 4 ms 20
  3. P3 2 ms 2 ms 30
  4. P4 4 ms 1 ms 40

4. Minimum Spanning Tree

Moderate
34m average time
0/80
Asked in companies
AmazonWells FargoMicrosoft

You are given an undirected, connected and weighted graph G(V, E), consisting of V number of vertices (numbered from 0 to V-1) and E number of edges.

Find and print the total weight of the Minimum Spanning Tree (MST) using Kruskal's algorithm.

By definition, a minimum weight spanning tree is a subset of the edges of a connected, edge-weighted undirected graph that connects all the vertices together, without any cycles and with the minimum possible total edge weight.

Problem approach

.

Try solving now

5. Aptitude Question

Choose the most appropriate word from the options given below to complete the following sentence. He could not understand the judges awarding her the first prize, because he thought that her performance was quite __________.

  1. superb
  2. medium
  3. mediocre
  4. exhilarating

6. Operating System

In Operating Systems, which of the following is/are CPU scheduling algorithms?

  1. Priority
  2. Round Robin
  3. Shortest Job First
  4. All of the mentioned

7. Aptitude Question

A vendor sold two apples each at rupees 30. The vendor made a profit of x% on the first apple and a loss of
x% on the second apple. The net loss percentage is 4.84%. Find the value of x.

8. Aptitude Question

In a certain code, NEWYORK is written as 111, how is NEWJERSEY written in that code?

9. Aptitude Question

"CURATED" is encoded as "UFEASVD". How would "AMAZING" be encoded?

10. What will be the output of the following Python code?

def func(x, y):
if y == 0:
return x
else:
return func(y, x % y)
result = func(108, 192)
print(result)

11. SQL

Which of these MySQL join types returns all records from the left table and the matched records from the right table?

  1. LEFT JOIN
  2. LEFT INNER JOIN
  3. LEFT RIGHT JOIN
  4. LEFT OUTER JOIN

12. DBMS

Which indexing algorithm is designed to handle range queries efficiently?

  1. B-tree
  2. Hashing
  3. Bitmap index
  4. Clustered index
02
Round
Medium
Face to Face
Duration90 minutes
Interview date9 Aug 2023
Coding problem5

1. House Robber

Moderate
26m average time
0/80
Asked in companies
SamsungAmazonQuikr

A thief wants to loot houses. He knows the amount of money in each house. He cannot loot two consecutive houses. Find the maximum amount of money he can loot.

Problem approach

That is a standard question, you can check the solution on coding platforms

Try solving now

2. Find K Closest Elements

Moderate
15m average time
85% success
0/80
Asked in companies
AmazonMorgan StanleyOptum

You are given a sorted array 'A' of length 'N', two integers 'K' and 'X'. Your task is to print 'K' integers closest to 'X', if two integers are at the same distance return the smaller one.

The output should also be in sorted order

Note:
An integer 'a' is closer to 'X' than an integer 'b' if: 
|a - X| < |b - X|  or (  |a - X| == |b - X| and a < b )
For Example:
if X = 4,  3 is closer to 'X' than 9, as |3-4| < |9-4|  i.e., 1 < 5   and if X = 4, 2 and 6 are equally close to it, as |2-4| == |6-4| = 2, but we say 2 is closer to 4 than 6, as 2 is smaller.
Try solving now

3. Smallest Number

Easy
15m average time
85% success
0/40
Asked in companies
OYOGoldman SachsMAQ Software

You are given two positive integers ‘N’ and ‘K’. Your task is to find the smallest ‘N’ digit number whose sum of digits equals ‘K’. If no such number exists then you need to print -1.

Try solving now

4. Puzzle

A lady makes a purchase of Rs 200/- in a store. The shopkeeper sells the goods with zero profit. He receives a Rs 1000/- note from the lady. The shopkeeper gets the change from the next shop, retains Rs.200 for himself, and gives the lady Rs.800 back. Later, the shopkeeper at the next shop comes with the Rs.1000 note saying “duplicate” and takes his money back.
How much Loss did the shopkeeper face?

5. Project Related Questions

The interviewer asked for a brief overview of each project and posed several standard questions, such as why I chose specific features and tech stacks. One of my projects involved working with APIs, prompting a query about my understanding of APIs.

03
Round
Medium
Face to Face
Duration75 minutes
Interview date9 Aug 2023
Coding problem6

1. Puzzle

Alok has three daughters. His friend Shyam wants to know the ages of his daughters. Alok gives him a first hint. 

  1. The product of their age is 72. Shyam says this is not enough information Alok gives him a second hint.
  2. The sum of their ages is equal to my house number. Shyam goes out and looks at the house number and says “I still do not have enough information to determine the ages”. Alok admits that Shyam can not guess and gives him the third hint
  3. The oldest girl likes strawberry ice cream.

Shyam is able to guess after the third hint. Can you guess what are the ages of the three daughters? 

2. Puzzle

There are two empty bowls in the room. You have 50 white balls and 50 black balls. After you place the balls in the bowls, a random ball will be picked from a random bowl. Distribute the balls (all of them) into the bowls to maximize the chance of picking a white ball. 

Easy
10m average time
90% success
0/40
Asked in companies
Disney + HotstarMicrosoftIntuit

Given N pairs of parentheses, write a function to generate and print all combinations of well-formed parentheses. That is, you need to generate all possible valid sets of parentheses that can be formed with a given number of pairs.

Try solving now

4. Product of Array Except Self

Easy
26m average time
0/40
Asked in companies
FacebookDelhiveryIntuit

You have been given an integer array/list (ARR) of size N. You have to return an array/list PRODUCT such that PRODUCT[i] is equal to the product of all the elements of ARR except ARR[i]

 Note :
Each product can cross the integer limits, so we should take modulo of the operation. 

Take MOD = 10^9 + 7 to always stay in the limits.
Follow up :
Can you try solving the problem in O(1) space?
Try solving now

5. Find K-th smallest Element in BST

Easy
15m average time
85% success
0/40
Asked in companies
SAP LabsGoldman SachsVisa

Given a binary search tree and an integer ‘K’. Your task is to find the ‘K-th’ smallest element in the given BST( binary search tree).

BST ( binary search tree) -

If all the smallest nodes on the left side and all the greater nodes on the right side of the node current node.

Example -

alt text

Order of elements in increasing order in the given BST is - { 2, 3, 4, 5, 6, 7, 8, 10 }

Suppose given ‘K = 3’ then 3rd smallest element is ‘4’.

Suppose given ‘K = 8’ then 8th smallest element is ‘10’.

Note:
1. You are not required to print the output explicitly, it has already been taken care of. Just implement the function and return the ‘K-th’ smallest element of BST.
2. You don’t need to return ‘K-th’ smallest node, return just value of that node. 
3. If ‘K-th’ smallest element is not present in BST then return -1.
Try solving now

6. Project Related questions

Similar to the previous round, we then discussed my first two projects, focusing on React features. They asked me to explain the concept of APIs as if they were 9th-grade students, and I used the analogy of a restaurant waiter to illustrate the idea.

The interviewers also inquired about the distinctions between a “set” and an “unordered_set,” along with the underlying principles of these data structures.

04
Round
Medium
Face to Face
Duration60 minutes
Interview date10 Aug 2023
Coding problem5

1. Puzzle

Determine the number of solutions for the equation x + y + z = n, where all variables (x, y, z, and n) are integers.

2. Merge Sort

Easy
15m average time
85% success
0/40
Asked in companies
Media.netHewlett Packard EnterpriseIBM

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm -

Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

subsequence

The above illustrates shows how merge sort works.
Note :
It is compulsory to use the ‘Merge Sort’ algorithm.
Try solving now

3. OOPs Concepts

Define encapsulation, and I was asked to write an example class illustrating this concept.

4. BFS and DFS

I mentioned that my favourite data structure was a graph, which led to a series of questions about graph traversal algorithms. I explained Breadth-First Search (BFS) and Depth-First Search (DFS) to the interviewer. (Learn)

5. Project Related questions

Consistent with previous rounds, I discussed my projects and their details. In one of my projects, I was asked to describe the JavaScript code I used to fetch data from an API.

Here's your problem of the day

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
Data Science Intern
2 rounds | 4 problems
Interviewed by myKaarma
742 views
0 comments
0 upvotes
company logo
Data Engineering Intern
2 rounds | 4 problems
Interviewed by myKaarma
524 views
0 comments
0 upvotes
company logo
Data Engineering Intern
2 rounds | 4 problems
Interviewed by myKaarma
617 views
0 comments
0 upvotes
company logo
Data Engineer
3 rounds | 6 problems
Interviewed by myKaarma
776 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes