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

SDE - Intern

MAQ Software
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: Half Month
Topics: I read a lot of Interview Experience of others and prepared accordingly. i brushed up,- Data Structures- Basic Coding questions at GFG for MAQ Software- SQL- DBMS
Tip
Tip

Tip 1 : Be very good with basic data structures.
Tip 2 : Try writing code on notepad sometimes.
Tip 3 : Focus on problem solving, during interview speak out your approach simultaneously while you are thinking about approach

Application process
Where: Campus
Eligibility: 60% throughout and above with no active backlog.
Resume Tip
Resume tip

Tip 1 : Write only what you know.
Tip 2 : Make it short.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date15 Oct 2020
Coding problem4

Aptitude + Coding round:
Aptitude Questions (30 questions in 30 minutes), easy-medium level. Just after finishing the Coding round was there, 4 coding questions in 60 minutes.

1. Sort 0 1 2

Easy
22m average time
0/40
Asked in companies
AmazonOracleWalmart

You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.

Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Problem approach

Count the number of 0s, 1s and 2s in the given array. Then store all the 0s in the beginning followed by all the 1s then all the 2s.
 

Try solving now

2. Maximum Subarray Sum

Moderate
35m average time
81% success
0/80
Asked in companies
HCL TechnologiesInformaticaSamsung

You are given an array 'arr' of length 'n', consisting of integers.


A subarray is a contiguous segment of an array. In other words, a subarray can be formed by removing 0 or more integers from the beginning and 0 or more integers from the end of an array.


Find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.


The sum of an empty subarray is 0.


Example :
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]

Output: 11

Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
Problem approach

I used Kadane's algorithm.....Luckily I solved same question some days before the test.

Try solving now

3. Detect and Remove Loop

Moderate
10m average time
90% success
0/80
Asked in companies
AmazonMicrosoftFreshworks

Given a singly linked list, you have to detect the loop and remove the loop from the linked list, if present. You have to make changes in the given linked list itself and return the updated linked list.

Expected Complexity: Try doing it in O(n) time complexity and O(1) space complexity. Here, n is the number of nodes in the linked list.

Try solving now

4. Count distinct substrings

Moderate
10m average time
90% success
0/80
Asked in companies
AdobeAmazonIntuit

Given a string 'S', you are supposed to return the number of distinct substrings(including empty substring) of the given string. You should implement the program using a trie.

Note :
A string ‘B’ is a substring of a string ‘A’ if ‘B’ that can be obtained by deletion of, several characters(possibly none) from the start of ‘A’ and several characters(possibly none) from the end of ‘A’. 

Two strings ‘X’ and ‘Y’ are considered different if there is at least one index ‘i’  such that the character of ‘X’ at index ‘i’ is different from the character of ‘Y’ at index ‘i’(X[i]!=Y[i]).
Try solving now
02
Round
Easy
Video Call
Duration30 minutes
Interview date28 Dec 2020
Coding problem1

He started with "Hello Rahul, Tell me about yourself briefly". Then he asked few theoretical questions and asked me about my favourite subject in engineering and why i like it. I named DS and Algorithms and reason is problem solving. He shared two coding questions in chatbox and asked me to write the code on given platform.

1. Nth Element Of Modified Fibonacci Series

Easy
15m average time
85% success
0/40
Asked in companies
MicrosoftFacebookGroww

You have been given two integers ‘X’ and ‘Y’ which are the first two integers of a series and an integer ‘N’. You have to find the Nth number of the series using the Fibonacci rule given by f(x) = f(x - 1) + f(x - 2).

The answer may be very large, return it after modulus 10 ^ 9 + 7.

Note:

The series is 1-based indexed.
Problem approach

I wrote code and he then he asked me to look for corner cases. I said if n is large then programme will run for long time and optimized code accordingly.

Try solving now
03
Round
Hard
Video Call
Duration45-60 minutes
Interview date28 Jan 2021
Coding problem1

He started round with coding question + SQL + Coding question and some questions from my projects.

1. Guess the data structure?

Given n number of rows containing data in this "cityname1 cityname2 distance" format and data is redundant. You have to think about a data structure to store them efficiently.

Problem approach

He asked me choose one tech to solve like coding language or SQL, i preferred c++ and used Unordered_map to store the data.

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 - Intern
4 rounds | 3 problems
Interviewed by MAQ Software
1142 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by MAQ Software
1191 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by MAQ Software
1251 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 5 problems
Interviewed by MAQ Software
3819 views
3 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3688 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2650 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
2323 views
0 comments
0 upvotes