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

SDE - 1

MobiKwik
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
I got the opportunity to appear in the interview for the role of SDE at MobiKwik in my 4th year of college. It was through campus placement. I cleared the online assesment which had 2 coding questions and 20 objective questions.
Application story
I got the opportunity to appear in the interview for the role of SDE at MobiKwik in my 4th year of college. It was through campus placement. I cleared the online assesment which had 2 coding questions and 20 objective questions.
Why selected/rejected for the role?
I was not selected for the position because I couldn't able to write the optimized code for the given problem.
Preparation
Duration: 3 months
Topics: Data Structures, Pointers, OOPS, Algorithms, Dynamic Programming, My SQL, Database, Operating System
Tip
Tip

Tip 1 : Practice Atleast 250 Questions on GFG/Leetcode
Tip 2 : For DSA questions in interviews, start explaining from the brute force approach and then move to the optimal one. Convey your thought process to the interviewers, so that they can help you out if you get stuck.
Tip 3 : Do not write anything that you are not confident of in resume
Tip 4 : Do atleast 2 projects

Application process
Where: Campus
Eligibility: 70%
Resume Tip
Resume tip

Tip 1: Try to include at least one development project in your resume.
Tip 2: Interviewer will ask anything from your resume so be prepared for it.
Tip 3 : Don't mention some random projects which you are not sure about or copied from Google or somewhere else.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 min
Interview date29 Dec 2021
Coding problem3

The first round was an assessment round comprised of MCQ questions of DSA, RDBMS, MySQL questions and 2 coding questions to be written in java only

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

public class Solution {

public static int helper(int[] houses, int n) {
if(n == 0) return 0;
int[] storage = new int[n + 1];
storage[0] = 0;
storage[1] = houses[0];
for(int i = 2; i < storage.length; i++) {
int op1 = houses[i-1] + storage[i-2];
int op2 = storage[i-1];
storage[i] = Math.max(op1, op2);
}
return storage[n];

}

public static int maxMoneyLooted(int[] houses){
return helper(houses, houses.length);
}

}

Try solving now

2. Shortest Common Supersequence

Hard
25m average time
0/120
Asked in companies
Dream11Thought WorksSamsung

Given two strings, ‘A’ and ‘B’. Return the shortest supersequence string ‘S’, containing both ‘A’ and ‘B’ as its subsequences. If there are multiple answers, return any of them.

Note: A string 's' is a subsequence of string 't' if deleting some number of characters from 't' (possibly 0) results in the string 's'.

For example:
Suppose ‘A’ = “brute”, and ‘B’ = “groot”

The shortest supersequence will be “bgruoote”. As shown below, it contains both ‘A’ and ‘B’ as subsequences.

A   A A     A A
b g r u o o t e
  B B   B B B  

It can be proved that the length of supersequence for this input cannot be less than 8. So the output will be bgruoote.
Try solving now

3. DBMS

Query to Find Second Highest Salary in SQL

Problem approach

SELECT MAX(SALARY) FROM Employee WHERE SALARY < (SELECT MAX(SALARY) FROM Employee);

02
Round
Easy
Face to Face
Duration60 min
Interview date4 Jan 2022
Coding problem2

we started with the introduction than he jumped to the dsa questions. He asked me two coding quesions one based upon dp and other on Binary tree

1. Number of balanced binary trees

Easy
10m average time
90% success
0/40
Asked in companies
Josh Technology GroupBlackrockMobiKwik

You are given an integer ‘N’, you are supposed to find the number of balanced binary trees with height ‘N’. Since the answer can be very large, return the answer modulo 10^9+7.

Note :
A binary tree is considered balanced if the difference between the left subtree’s height and the right subtree’s height is less than or equal to 1, for all non-leaf nodes.

Example:

Consider N=2, there are three different binary trees.

Example

Try solving now

2. Diameter of a Binary Tree

Easy
10m average time
90% success
0/40
Asked in companies
PhonePeAmazonPayU

You are given a Binary Tree.


Return the length of the diameter of the tree.


Note :
The diameter of a binary tree is the length of the longest path between any two end nodes in a tree.

The number of edges between two nodes represents the length of the path between them.
Example :
Input: Consider the given binary tree:

Example

Output: 6

Explanation:
Nodes in the diameter are highlighted. The length of the diameter, i.e., the path length, is 6.


Try solving now
03
Round
Easy
Face to Face
Duration60 mins
Interview date5 Jan 2022
Coding problem2

In this round Interviewer asked me difficult DSA problems based on DP and Greedy Algorithms

1. Allocate Books

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

Given an array ‘arr’ of integer numbers, ‘arr[i]’ represents the number of pages in the ‘i-th’ book.


There are ‘m’ number of students, and the task is to allocate all the books to the students.


Allocate books in such a way that:

1. Each student gets at least one book.
2. Each book should be allocated to only one student.
3. Book allocation should be in a contiguous manner.


You have to allocate the book to ‘m’ students such that the maximum number of pages assigned to a student is minimum.


If the allocation of books is not possible, return -1.


Example:
Input: ‘n’ = 4 ‘m’ = 2 
‘arr’ = [12, 34, 67, 90]

Output: 113

Explanation: All possible ways to allocate the ‘4’ books to '2' students are:

12 | 34, 67, 90 - the sum of all the pages of books allocated to student 1 is ‘12’, and student two is ‘34+ 67+ 90 = 191’, so the maximum is ‘max(12, 191)= 191’.

12, 34 | 67, 90 - the sum of all the pages of books allocated to student 1 is ‘12+ 34 = 46’, and student two is ‘67+ 90 = 157’, so the maximum is ‘max(46, 157)= 157’.

12, 34, 67 | 90 - the sum of all the pages of books allocated to student 1 is ‘12+ 34 +67 = 113’, and student two is ‘90’, so the maximum is ‘max(113, 90)= 113’.

We are getting the minimum in the last case.

Hence answer is ‘113’.
Try solving now

2. Maximum Size Rectangle Sub-matrix With All 1's

Hard
10m average time
80% success
0/120
Asked in companies
AmazonAppleBNY Mellon

You are given an 'N' * 'M' sized binary-valued matrix 'MAT, where 'N' is the number of rows and 'M' is the number of columns. You need to return the maximum size (area) of the submatrix which consists of all 1’s i.e. the maximum area of a submatrix in which each cell has only the value ‘1’.

subMatrix_image

In the above image, areas in green, red, and violet color are all submatrices of the original 4x4 matrix.

Note:

1. Binary valued matrix has only two values in each cell : 0 and 1.
2. A submatrix is a matrix formed by selecting certain rows and columns from a larger matrix.
3. The area of a matrix with 'h' rows and 'w' columns is equal to 'h' * 'w'. 
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
2 rounds | 5 problems
Interviewed by MobiKwik
1361 views
0 comments
0 upvotes
company logo
SDE - 1
5 rounds | 7 problems
Interviewed by MobiKwik
1517 views
0 comments
0 upvotes
company logo
SDE - 1
5 rounds | 8 problems
Interviewed by MobiKwik
1352 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 12 problems
Interviewed by MobiKwik
4145 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114578 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57824 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34960 views
7 comments
0 upvotes