Media.net interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Media.net
upvote
share-icon
4 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, OOPS, Low-Level System Design, Algorithms, Dynamic Programming, Projects.
Tip
Tip

Tip 1 : Practice Hard DSA coding problems. Specially Dynamic Programming, Graphs, Trees, Greedy, Trie.
Tip 2 : Work on at least 2 meaningful projects, which have a good backend design, choose a meaningful tech stack, and should have reasons to choose. Mention some numerical data/matrix of your project.
Tip 3 : Practice the low-level designs.
Tip 4 : Make a good grip on CS fundamentals (OOP, DBMS, OS, CN)
Tip 5 : In the Interview maintain good communication, show them your thinking process and take feedback on your solution.
Tip 6 : Discuss your solution first, discuss all the edge cases and take their feedback before jumping to implementation.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Keep the resume simple. Provide all the necessary links (LinkedIn, GitHub, Coding Platforms). Show your best part first on top of the resume. Avoid unnecessary information like Address, Personal hobbies, etc.
Tip 2 : Mention some numerical data/matrix of your projects or the previous experience work. 
Tip 3 : Keep the description short and easy to understand. Highlight the key points in the description.

Interview rounds

01
Round
Hard
Online Coding Interview
Duration90 minutes
Interview date3 Sep 2021
Coding problem1

It was an online test with 3 coding questions. The difficulty level was hard.

1. Huffman Coding

Moderate
25m average time
75% success
0/80
Asked in companies
Media.netZSWells Fargo

You are given an array 'ARR' of Integers having 'N' elements. The array contains an encoded message. For each index 'i', 'ARR[i]' denotes the frequency of the 'i'th' character in the message. The characters are of an alien language having 'N' alphabets. Given the frequency of each of the 'N' alphabets in the message, your task is to find out the Huffman codes for each of the 'N' alphabets in the message.

The Huffman Code for a message is the set of codes such that :

1) All codes are binary strings.
2) Each code should be able to determine its corresponding character uniquely.
3) The total numbers of bits used to represent the message are minimized.

Note:

If there are multiple sets of valid Huffman codes for a message. You can print any of them.

For example:

Consider the array ARR = [ 1, 4, 2 ] having 3 elements. 
The array containing Huffman Codes for the above array will be [ '10', '0', '11' ]. Other Valid Huffman Codes are [ '01', '1', '00' ], [ '00', '1', '01' ] etc. Codes like [ '1', '0', '01' ], [ '1', '10' , '0' ] are some of the invalid Huffman Codes.
Try solving now
02
Round
Hard
Video Call
Duration60 minutes
Interview date6 Sep 2021
Coding problem1

It was an online video call. The interviewer was very helpful, He helped me to solve the problem.

1. Partition String

Moderate
25m average time
75% success
0/80
Asked in companies
Media.netFlipkart limited

Given a string S of lowercase English letters, your task is to partition the list in as many parts as possible such that each letter appears in at most one part, and return a list of integers representing the size of these parts.

Note
You don’t have to print anything, it has already been taken care of. Just implement the function. 
The string will contain lowercase alphabets only. 
Problem approach

Step 1 - I solved it using dynamic programming with O(N^3) complexity.
Step 2 - The interviewer asked me to optimize the solution.
Step 3 - Then I optimized it to O(N^2) and the interviewer was happy.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date6 Sep 2021
Coding problem1

1. Anagram Substring Search

Moderate
35m average time
70% success
0/80
Asked in companies
AdobeMedia.netZS

Given two strings ‘STR’ and ‘PTR’. Find all the starting indices of ‘PTR’ anagram substring in ‘STR’. Two strings are anagram if and only if one string can be converted into another string by rearranging the character.

For example, ‘ABCD’ and ‘ACBD’ are two anagram strings because ‘ACBD’ can be converted into ‘ABCD’ by rearranging the ‘B’ and ‘C’. ’ABA’ and ‘ABB’ are not anagram because we can’t convert ‘ABA’ to ‘ABB’ by rearranging the characters of particular strings.

‘ABACD’ and ‘CABAD’ are anagram because ‘ABACD’ can be converted into ‘CABAD’ by rearranging the first ‘A’ with ‘C’ and second ‘A’ with ‘B’.

Note:
Strings ‘STR’ and ‘PTR’ consist only of English uppercases.

Length of string ‘STR’ will always be greater than or equal to the length of string ‘PTR’.

The index is ‘0’ based.

In case, there is no anagram substring then return an empty sequence.

Explanation:

For example, the given ‘STR’ is ‘BACDGABCD’ and ‘PTR’ is ‘ABCD’. Indices are given

0-3 in ‘STR’ index 0,1,2,3 are ‘BACD’ and it is an anagram with ‘ABCD’
1-4 in ‘STR’ index 1,2,3,4 are ‘ACDG’ and it is not anagram with ‘ABCD’
2-5 in ‘STR’ index 2,3,4,5 are ‘CDGA’ and it is not anagram with ‘ABCD’
3-6 in ‘STR’ index 3,4,5,6 are ‘DGAB’ and it is not anagram with ‘ABCD’
4-7 in ‘STR’ index 4,5,6,7 are ‘GABC’ and it is not anagram with ‘ABCD’
5-8 in ‘STR’ index 5,6,7,8 are ‘ABCD’ and it is an anagram with ‘ABCD’

Hence there are 2 starting indices of substrings in the string ‘STR’ that are anagram with given ‘PTR’  which are index 0 and 5.
Problem approach

Step 1 : I was able to solve it using greedy and bit masking. 
Step 2 : Then as a 2nd part Interviewer asked me to find the lexicographically minimum anagram.
Step 3 : I gave a solution with a greedy approach and interviewer was happy.

Try solving now
04
Round
Medium
Video Call
Duration60 minutes
Interview date6 Sep 2021
Coding problem1

It was a cs fundamental and low-level system design round.

1. Merge Sort

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

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm -

Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

subsequence

The above illustrates shows how merge sort works.
Note :
It is compulsory to use the ‘Merge Sort’ algorithm.
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

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
SDE - 1
3 rounds | 6 problems
Interviewed by Media.net
4659 views
1 comments
0 upvotes
SDE - 1
2 rounds | 2 problems
Interviewed by Media.net
1300 views
0 comments
0 upvotes
SDE - 1
4 rounds | 8 problems
Interviewed by Media.net
1441 views
0 comments
0 upvotes
SDE - 1
4 rounds | 6 problems
Interviewed by Media.net
0 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58237 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes