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

Associate Software Developer

MagicPIN
upvote
share-icon
3 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Journey
I reached out to people on LinkedIn to share my resume with HR personally. Then, I got a call for an interview. All rounds were virtual, and in all the rounds, the focus was mainly on DSA, computer networking, and resume-based questions.
Application story
I applied on LinkedIn, got the referral, did three rounds of interviews, and then the CTC discussion happened. As I was a fresher, I was offered the ASDE role. The company culture is great, and I am learning a lot of things.
Why selected/rejected for the role?
I think the 3rd round discussion is very helpful because, in the third round, there is always a senior person who leads the round. If he/she finds you capable enough, that's perfect. Try to showcase your thinking process instead of just jumping to solutions.
Preparation
Duration: 1 month
Topics: DSA, React machine coding, Computer fundamental, DBMS, OOPS, JS
Tip
Tip

Tip 1: Do DSA practice on online coding platforms.
Tip 2: Before the interview, revise your JS, React, and CS fundamental concepts.

Application process
Where: Linkedin
Eligibility: NA (Salary: 7 LPA)
Resume Tip
Resume tip

Tip 1: Put a good resume and experience, but keep it real. Verification happens by HR, and any problem with that results in rejection.

Interview rounds

01
Round
Easy
Face to Face
Duration60 minutes
Interview date9 Aug 2024
Coding problem3

This round is completely based on JavaScript concepts. The interviewer was very friendly, and the questions were standard JavaScript questions. If you prepared well for JavaScript, anyone can easily crack it.

1. JavaScript theory questions

What is hoisting in JavaScript? (Learn)
Difference between let, var and const. (Learn)

Problem approach

Tip 1: Learn JavaScript concepts.

2. JavaScript theory questions

What are promises in JavaScript? (Learn)
Write a promise that is resolved or rejected under certain conditions.

Problem approach

Tip 1: Focus on JS concepts.
Tip 2: Basic JS questions.

3. JavaScript theory + Concept questions

What is the difference between call, apply, and bind? (Learn)
What is debounce and throttle? (Learn)
Write a polyfill for reduce.

02
Round
Medium
Face to Face
Duration60 min
Interview date15 Aug 2024
Coding problem2

It was a completely DSA-based round. One question was straight from an online coding platform, and one was not straight but a familiar type of question. The interview was very supportive, cooperative, and helped in understanding the problem.

1. Longest Consecutive Sequence

Moderate
40m average time
70% success
0/80
Asked in companies
AmazonAppleUber

You are given an unsorted array/list 'ARR' of 'N' integers. Your task is to return the length of the longest consecutive sequence.

The consecutive sequence is in the form ['NUM', 'NUM' + 1, 'NUM' + 2, ..., 'NUM' + L] where 'NUM' is the starting integer of the sequence and 'L' + 1 is the length of the sequence.

Note:

If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For example-
For the given 'ARR' [9,5,4,9,10,10,6].

Output = 3
The longest consecutive sequence is [4,5,6].
Follow Up:
Can you solve this in O(N) time and O(N) space complexity?
Problem approach

Initialize a HashMap:

Create a HashMap called map where each integer in the array nums will be a key, and the value will initially be true (indicating that this number could potentially start a sequence).

Populate the HashMap:

For each integer num in the array nums: Set map[num] = true.

Initialize max for the longest sequence:

Set max to 0. This will keep track of the maximum length of consecutive sequences.

Loop through each key in the HashMap:

For each key key in the HashMap: Check if there’s a number just before key (i.e., key - 1) in the map. If key - 1 exists in the map, mark map[key] as false because key cannot start a new sequence. Otherwise, if key - 1 is not in the map, key is the start of a new sequence.

Count the length of the sequence starting from key:

Initialize len to 1 (since key is the first number in the sequence). While there are consecutive numbers after key (i.e., while the map contains key + len): Increment len by 1.

Update the maximum length:

Update max to be the larger of the current max or the len just calculated.

Return the result:

After all keys are processed, return max, which represents the length of the longest consecutive sequence.

Try solving now

2. First Missing Positive

Moderate
18m average time
84% success
0/80
Asked in companies
DunzoHikeSamsung

You are given an array 'ARR' of integers of length N. Your task is to find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that does not exist in the array. The array can have negative numbers as well.

For example, the input [3, 4, -1, 1] should give output 2 because it is the smallest positive number that is missing in the input array.

Problem approach

Mark Out-of-Range Numbers:

  1. Get the length of the array, n.
  2. For each element in nums, if the value is not a candidate for the smallest missing positive integer (i.e., if nums[i] <= 0 or nums[i] > n), replace nums[i] with n + 1, an out-of-range value. This transformation helps ignore irrelevant numbers during subsequent steps.

Mark Indices of Found Numbers as Negative:

  1. For each element in nums, calculate its absolute value, val.
  2. If val is within the range [1, n], mark the index val - 1 as negative to indicate that val exists in the array.
  3. If nums[val - 1] is already negative, it has already been marked, so leave it as is.

Identify the First Positive Index:

  1. Traverse nums again.
  2. If nums[i] is positive, then i + 1 is the smallest positive integer missing from the array (since the array indices are zero-based).
  3. If all indices are marked as negative, all numbers from 1 to n are present, so return n + 1 as the smallest missing positive integer.
Try solving now
03
Round
Medium
Video Call
Duration40 mins
Interview date21 Aug 2024
Coding problem3

It was a very interaction-friendly round. I would recommend everyone to study in detail about what they did in their internships and projects, as that is asked a lot.

1. Find power of a number

Easy
15m average time
80% success
0/40
Asked in companies
SAP LabsWalmartQuikr

Ninja is sitting in an examination hall. He is encountered with a problem statement, "Find ‘X’ to the power ‘N’ (i.e. ‘X’ ^ ‘N’). Where ‘X’ and ‘N’ are two integers."

Ninja was not prepared for this question at all, as this question was unexpected in the exam.

He is asking for your help to solve this problem. Help Ninja to find the answer to the problem.

Note :

For this question, you can assume that 0 raised to the power of 0 is 1.
Problem approach

The approach is to recursively call the function for X and N - 1, and then multiply the value returned by the recursive function with X.

Since X ^ N is the same as X * (X ^ (N - 1)).

Approach:

First, let's say the recursive function is ‘POW(X, N)’, with ‘X’ and ‘N’ as arguments. The base case for the recursive function will be when N = 0, in which case it will return the value 1 (since X ^ 0 = 1), and when X = 0, it will return the value 0.

Next, the function is called recursively with ‘X’ and ‘N - 1’ as arguments, and the value is returned by multiplying it with ‘X’. The function call will return X * POW(X, N - 1).

Try solving now

2. DBMS

What are ACID properties? (Learn)
What is indexing in DBMS? (Learn)
Which is preferable: relational or non-relational database? (Learn)

Problem approach

Tip 1: In questions like relational and non-relational, do not give one answer; it depends on the use case.
Tip 2: Revise thoroughly before the interview on DBMS.

3. Technical Question

They can ask you to put some functionality in your own project. 

In computer networking, they asked about the difference between permanent storage, local storage, and cookies. (Learn)

Problem approach

Tip 1: revise evrything u have on resume
Tip 2: give proper ans to what you did in last company/internship
Tip 3: understand you project strngly

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
SDE - 1
3 rounds | 6 problems
Interviewed by MagicPIN
1790 views
0 comments
0 upvotes
Software Engineer
3 rounds | 4 problems
Interviewed by MagicPIN
1169 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
SDE - 1
3 rounds | 7 problems
Interviewed by MagicPIN
485 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Developer
5 rounds | 10 problems
Interviewed by SAP Labs
1201 views
0 comments
0 upvotes
company logo
Associate Software Developer
3 rounds | 3 problems
Interviewed by SAP Labs
788 views
0 comments
0 upvotes
company logo
Associate Software Developer
3 rounds | 7 problems
Interviewed by CIS - Cyber Infrastructure
578 views
0 comments
0 upvotes