MPL Coding Questions and Answers

MPL Coding Questions with Solutions

On this page, you will get MPL Coding Questions and Answers, which were asked in Online Coding Test and Technical Interviews included in MPL Recruitment Process.

Apart from that you will get the details on MPL Recruitment process including CTC Offered, Eligibility Criteria, and Job Profile.

MPL-Coding-Questions

About MPL

MPL (Mobile Premier League) is a Bangalore-based e-sports and mobile gaming platform that offers a range of skill-based games for users to play and win real money. The platform offers games in a variety of genres, including sports, fantasy, strategy, action, and arcade, among others. Users can participate in daily and weekly tournaments to compete with other players and win cash prizes. 

MPL also partners with game developers and content creators to offer exclusive games and experiences to its users. The company was founded in 2018 and has since grown to become one of the leading mobile gaming platforms in India with a user base of over 100 million players.

About MPL Recruitment Process

MPL Recruitment Process involves 3 steps for hiring the applicants:

  1. Online Aptitude Test
  2. Group Discussion
  3. Technical Interview
  4. HR Interview

We have given the details of Group Discussions, Technical Interviews, and HR Interviews separately in the following sections

  • Group Discussions

Here, Recruiters ask about some opinions and views on the latest trends in Technical Fields, Social Issues, Current Affairs, etc. To test the mindset and perspective of the applicant. For more details check out the link given below:

  • Technical Interview

Here Recruiters test the candidate’s technical skills, including topics like Programming Skills, Problem-Solving Skills, and other Domain Based Questions. Click on the button given below to get more details:

  • HR Interview

Here, the HR tests Personality, Strengths, Weaknesses, etc. For checking whether the candidate is the best fit for Offered Role or not. Click on the button given below to get more details:

In the table below, we have provided further information on the MPL Recruitment Process.

MPLRelated Information
Position :Data Analytics Intern
Course :
  • B.E / B.Tech – CS, IT, EC & EN.
  • Eligible Batch: 2023
Eligibility Criteria / Academic Qualification Required :
  • Minimum 75 % or equivalent CGPA required in 10th / 12th/ Graduation.
  • No Current Backlogs.
CTC Offered :
  • During Internship = ₹ 30K – 40K per month.
  • Post Internship = ₹ 9 L.P.A
Selection Process :
  1. Online Aptitude Test
  2. Group Discussion
  3. Technical Interview
  4. HR Interview
Joining Location :Bangalore

Skills required for the Job profile of Data Analytics Intern:

  • Good Programming Skills in Python or R.
  • Knowledge in Computer Science subjects like Data Structures, Algorithms, Database, Computer Networks, Operating Systems etc.
  • Familiar with PySpark, AWS, and Rest/Fast APIs.
  • Good Analytical and Problem-Solving Skills.

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

MPL Coding Questions with Solutions

Question 1 : Whole Number

Given a positive whole number n, find the smallest number which has the very same digits existing in the whole number n and is greater than n. In the event that no such certain number exists, return – 1.

Note that the returned number should fit in a 32-digit number, if there is a substantial answer however it doesn’t fit in a 32-bit number, return – 1.

Example 1:
Input: n = 12
Output: 21

Explanation:  Using the same digit as the number of permutations, the next greatest number for 12 is 21.

Example 2:
Input: n = 21
Output: -1

Explanation:  The returned integer does not fit in a 32-bit integer

Question 2 : Islands

Problem Statement: Given boolean 2D matrix , find the number of islands. A group of connected 1s form an island. For example, the below matrix contains 5 islands.

Example :

m =5, n=5

1  1  0  0  0 

0  1  0  0  1 

1  0  0  1  1 

0  0  0  0  0 

1  0  1  0  1 

Output :

5

Explanation:  There are total 5 island in the matrix.

Question 3 : Movie

After Watching a movie at PVR, Adil is pondering over the number of ways in which he can pay for the movie. He has x1, x2, x3, x4 coins of values 1,2,5 and 10 respectively. He wants to determine the number of ways in which he can pay an amount A.

You need to fill in a function that returns the number of ways to pay total amount

Input Specifications:

Input 1: An integer value denoting the total amount to be paid

Output Specification:
Return an Integer value denoting the number of ways to pay the total amount

Example1:
Input1: 40
Output : 195

Example2:
Input1: 4
Output : 3

Question 4 : Binary Tree

Problem Statement – How will we represent a binary tree? We can use a bracket structure for all of the edges, like (Parentnode , Childnode). Now if we use a node in a child node more than once, the tree can not be valid. Same for the parent node, a node can not be taken more than twice in  a graph as a parent node.

Suppose we see this one graph

(P,Q)(P,R)(Q,T)(R,W)(U,V)(Q,S)(R,U)(U,Z)(S,I)(W,Y)

A tree with those edges may be illustrated in many ways.Here are two:

                   P                            P

                /    \                        /     \

              Q      R                   Q      R

            /   \     /    \               /   \    /  \

          S   T   U   W           S    T  U  W

            \        / \     \          /          / \      \

             I     V  Z    Y      I         Z  V    Y

The following is a recursive definition for the S-expression of a tree.

S-exp(node)=(node->val(S-exp(node->first_child))(S-exp(node->second_child))),if node

!NULL=””,node= =NULL

         Where first_child->valval(first_child->val is lexicographically than second_child->val)

This tree can be represented in S-expression in multiple ways.The lexicographically smallest way of expressing it as follows:

P(Q(S(I))(T))(R(U(V)(Z))(W(Y))))

 

Translate the node-pair representation into its lexicographically smallest S-expression or report any errors that do not conform to the definition of the binary tree.

The List of errors with their codes is as follows: 

 

Error                               Reason

Code Stopped1                More than 2 children

Code Stopped2                Duplicate Edges

Code Stopped3                Cycle Present(node is direct descendant of more than one node)

Code Stopped4                Multiple Roots

Code Stopped5                Any other error

 

Functional Description

 

Complete the function sExpression in the editor below.

  • The function must return either the lexicographically lowest S-expression or the lexicographically lowest error code as a string.

 

sExpression has the following parameter(s):

  • Nodes:a string of space-separated parenthetical elements,each of which contains the name of two nodes connected by a comma.

 

Constraints:

  1. All node names are single characters in the range ascii[A-Z].
  2. The maximum node count is 26.
  3. There is no specific order to the input (parent,child) pairs.

 

>Input Format for Custom Testing

>Sample Case 0

Sample Input 0

(B,D) (D,E) (A,B) (C,F) (E,G) (A,C)

Sample output 0

(A(B(D(E(G))))(C(F)))

Explanation 0

A representation of tree is as follows:

 

             A

           /    \

         B      C

         /         \

       D           F

      /

     E

    /

  G

>Sample Case 1

Input:

(C,E)(D,F)(A,B)(A,C)(B,K)

Output:

A(B(K))(C(E)))D(F))

Question 5

Vira writes an apology letter to anu. However, before Anu can read it, Vira’s enemy Rohan takes it and rotates the characters of each word left to right N times. Find the number of words that remain the same even after this shifting of letters.

Input Specification:

  • input1: String of words
  • input2: N, number of times rotation happens

Output Specification:

  • Your function should return the number of correct words.

Example 1:

input1: llohe ereth
input2: 2

Output : 2

Example 2:

input1: Sorry
input2: 2

Output : 0

FAQs related to MPL Coding Questions

Question 1: How many rounds are there in MPL Recruitment Process?

There are total of 4 rounds in the MPL Recruitment Process which include:-

  1. Online Aptitude Test
  2. Group Discussions
  3. Technical Interview
  4. HR Interview
Question 2: What kind of roles are available at MPL in India?

MPL offers a variety of roles across different domains, including Game Development, Data analytics, artificial intelligence, machine learning and cloud computing.

Question 3: Does MPL asks coding questions in Recruitment Process?

Yes, Coding Questions are included in MPL Recruitment Process but according to different job profiles.

Question 4: How can I apply for a job at MPL?

You can visit the Careers page on the MPL website to find current job openings. Or you can contact your College’s Training & Placement Cell to give necessary details of On Campus Hiring conducted by MPL in various colleges.

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription