Discovery Inc. interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

Discovery Inc.
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I had some coding knowledge when I Joined college. I was not practicing problems till my 2nd year, but after 2nd year, I worked a lot on my coding skills. I got many offers and finally decided to join Cisco as an intern in my fourth year. After that, I got a PPO and started working full-time there.
Application story
There was an opening on LinkedIn for Discovery. I applied directly on the career portal, got the test link, cleared the test, and received an interview invite.
Why selected/rejected for the role?
Rejected, I did not understand the reasons as the interview went pretty well, but I got ghosted after two rounds of interviews.
Preparation
Duration: 4 Months
Topics: Data Structures, Algorithms, Aptitude, OOPS
Tip
Tip

Tip 1: Must do Previously asked Interviews as well as Online Test Questions.
Tip 2: Must have good knowledge of DSA
Tip 3: Do at least two good projects; you must know every bit of them.

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

Tip 1: Have at least two good projects explained in short with all essential points covered.
Tip 2: Every skill must be mentioned.
Tip 3: Focus on skills, projects, and experiences more.

Interview rounds

01
Round
Medium
Video Call
Duration60 Minutes
Interview date17 Mar 2022
Coding problem2

This was a round to test your DSA Skills, Practice well for this round.

1. Infix To Postfix

Easy
20m average time
80% success
0/40
Asked in companies
DelhiverySamsungOracle

You are given a string 'exp' which is a valid infix expression.


Convert the given infix expression to postfix expression.


Note:
Infix notation is a method of writing mathematical expressions in which operators are placed between operands. 

For example, "3 + 4" represents the addition of 3 and 4.

Postfix notation is a method of writing mathematical expressions in which operators are placed after the operands. 

For example, "3 4 +" represents the addition of 3 and 4.

Expression contains digits, lower case English letters, ‘(’, ‘)’, ‘+’, ‘-’, ‘*’, ‘/’, ‘^’. 


Example:
Input: exp = ‘3+4*8’

Output: 348*+

Explanation:
Here multiplication is performed first and then the addition operation. Hence postfix expression is  3 4 8 * +.


Try solving now

2. Decode Ways

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

Given a string ‘strNum’ which represents a number, your task is to find the ways to decode the given string ‘strNum’.

The format of encoding is as follows: ‘A’ - 1, ‘B’ - 2, ‘C’ - 3, ‘D’ - 4, ……………, ‘Z’ - 26.

Encoding is possible in letters from ‘A’ to ‘Z’. There is an encoding between character and number.

Example :

subsequence

‘n = 226’ so we can decode ‘226’ in such a way-

‘BZ = 2-26’, as B maps to 2 and Z maps to 26.

‘BBF = 2-2-6’

‘VF = 22-6’

‘226; can be decoded in three ‘BZ’, ‘BBF’, ‘VF’ possible ways.

Point to be noticed we can’t decode ‘226’ as ‘226’ because we have no character which can directly map with ‘226’ we can only decode numbers from ‘1’ to ‘26’ only.

Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date25 Mar 2022
Coding problem1

This was a Hiring Manager Round and it was pretty chill. Interviewer asked questions on Projects and Internship work and 1 good DSA question.

1. Trie Delete Operation

Moderate
25m average time
65% success
0/80
Asked in company
MAQ Software

You are given a Trie data structure which stores words or strings and a string 'WORD'. Your task is to perform the delete operation on the Trie to delete an input string 'WORD' from it.

You have to complete the function deleteWord() which takes the root of input Trie 'ROOT' and a string 'WORD' as parameters and returns a TrieNode pointer. If the string 'WORD' exists in the trie, it must be deleted, and the root of new Trie should be returned. If the correct word is deleted, the output will be “TRUE” else it will be “FALSE”.

If the string “word” doesn’t exist in the Trie, then no delete operation will take place, and the output will be “TRUE”. If for any query, the output is “FALSE”, then the answer is wrong.

Trie is a data structure which is like a tree data structure in its organization. It consists of nodes that store letters or alphabets of words, which can be added, retrieved, and deleted from the trie in a very efficient way. In other words, Trie is an information retrieval data structure, which can beat naive data structures like Hashmaps, Trees etc. in time complexities of its operations.

Above figure is the representation of a Trie. New words that are added are inserted as the children of the root node. Alphabets are added in the top to bottom fashion in parent to children hierarchy. Alphabets that are highlighted with blue circles are the end nodes which mark the ending of a word in the Trie.

To define this problem, we perform operations with the following two types of queries.

To insert a string WORD in the Trie, we use ‘’Type 1’’ query.

Example: 1 WORD 

We will put the integer 1 before the input string WORD to insert it into the Trie.

To delete the string  WORD from the Trie, we use the “Type 2” query.

Example: 2 WORD

We will put integer 2 before the input string WORD to delete the string WORD from the Trie.

Example:-

Query A - 1 coding
This query will add the string “coding” in the trie.

Query B - 2 coding
This query will delete the string “coding” from the Trie. After deleting the string, it will produce “TRUE” as it’s output.

Note:

If anywhere in the output, the word “FALSE” is printed, it means that the given string is not deleted successfully from the Trie, and hence it will lead to a Wrong Answer.
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
4656 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
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7873 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
9972 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4309 views
1 comments
0 upvotes