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

SDE - 1

Moglix
upvote
share-icon
2 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
I started my preparation when I was in my third year. Then, I took a course in competitive programming from Coding Ninjas, which helped me a lot with my DSA concepts and especially in improving my logical thinking. After completing the course, I began practicing coding on different coding platforms.
Application story
It was an off-campus drive, and it was conducted virtually. There were three rounds, including a technical interview and an HR interview. The first round was a coding test, which lasted around 45 minutes and was scheduled for July 20, 2023. After being shortlisted, I received a message from HR for the first interview.
Why selected/rejected for the role?
Interviews are often holistic, considering both the correctness of your answers and your approach. Even a few mistakes can feel magnified if they are critical to the role you are applying for. Some roles may require a specific skill set, and failing to demonstrate those skills can be decisive in the outcome.
Preparation
Duration: 4 months
Topics: Data Structure ,OOPS , SQL, DBMS, HTML , CSS , JS
Tip
Tip

Tip 1: Practice coding questions regularly on coding platforms.

Tip 2: Before attending an interview, check the interview experiences to get some insights.

Tip 3: Maintain consistency in your preparation.

Application process
Where: Linkedin
Eligibility: B-tech (all branch), (Salary package: 6 LPA)
Resume Tip
Resume tip

Tip 1: Don't include false information in your resume.
Tip 2: Be well-prepared with your resume.

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 minutes
Interview date20 Jul 2023
Coding problem5

The first round was a coding and aptitude round, where they asked questions related to coding.

1. Count All Subarrays With Given Sum

Moderate
15m average time
85% success
0/80
Asked in companies
SAP LabsIBMHSBC

Find the total number of continuous subarrays whose sum equals a given value k.

Problem approach

Use a hash map to store cumulative sums (prefix sum) and their frequencies.
For each element, calculate the cumulative sum and check if (cumulative_sum - k) exists in the map.

Try solving now

2. Rotate array

Easy
25m average time
80% success
0/40
Asked in companies
Deutsche BankIBMSalesforce

Rotate a number array to the right by k steps

Problem approach

Reverse the entire array.
Reverse the first k elements.
Reverse the remaining elements.

Try solving now

3. Puzzle

A fruit seller buys oranges at a rate of ₹60 per dozen and sells them at ₹75 per dozen. What is his profit percentage?

Options:
a) 20%
b) 25%
c) 30%
d) 15%

4. Puzzle

A train 150 meters long is running at a speed of 54 km/h. How much time will it take to cross a platform 100 meters long?

Options:
a) 10 seconds
b) 15 seconds
c) 18 seconds
d) 20 seconds

5. Primary Key in Database

What is a primary key in a relational database? (Learn)

Options:
a) A key that can have null values.
b) A unique identifier for each record in a table.
c) A key that refers to another table.
d) A key used to sort data in ascending order.

Problem approach

1. Master SQL Basics and Practice Queries
2. Understand Database Design Principles
3. Explore Real-World Applications

02
Round
Medium
Face to Face
Duration60 minutes
Interview date20 Jul 2023
Coding problem2

The interview was scheduled for July 20, 2023, and it lasted approximately 60 minutes. This interview was part of an off-campus drive for a position.
The interviewer started the session by asking me to introduce myself. I shared details about my academic background, key skills, and relevant experiences, focusing on aspects that align with the job requirements.
Next, he asked me to talk in-depth about my project, which was a crucial part of the conversation. He was particularly interested in understanding my technical knowledge and problem-solving approach. I explained the project architecture, technologies used, the challenges I faced, and the impact it had. The interviewer asked several follow-up questions to gauge my level of involvement in the project and to see if I had a deep understanding of the concepts.
Lastly, the interviewer gave me a coding problem to solve. It was a technical question that tested my problem-solving abilities and programming knowledge. I worked through the problem step by step, explaining my thought process and approach. The interviewer asked a few clarifying questions and followed up on certain aspects of the code, allowing me to further demonstrate my technical competence.

1. Anagram Pairs

Moderate
30m average time
60% success
0/80
Asked in companies
NearbuyAppleAmerican Express

Given two strings s and t, return true if t is an anagram of s.
Example:
Input: s = "anagram", t = "nagaram"
Output: true

Problem approach

Sort both strings and compare.
Alternatively, use a hashmap to count the frequency of characters in both strings and compare the counts.

Try solving now

2. Next Greater Element

Moderate
20m average time
90% success
0/80
Asked in companies
CIS - Cyber InfrastructureAmazonPhonePe

Given an array, find the next greater element for every element.
Example:
Input: nums = [4, 5, 2, 10]
Output: [5, 10, 10, -1]

Problem approach

Use a stack to store indices or elements while traversing the array.
For each element, check if it is greater than the top of the stack:
If yes, pop from the stack and update the result for the popped index.
Push the current element’s index onto the stack.

Try solving now

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
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes