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

Product Intern

Adobe
upvote
share-icon
2 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms, OOPS, Dynamic Programming, Operating Systems
Tip
Tip

Tip 1 : Practice questions on each data structure 
Tip 2 :  Practice previously asked questions and there are many videos on Youtube which have made DSA sheets, just do all the important questions. Try to solve 500 questions in total to become fully prepared for coding rounds.
Tip 3 : Make a notebook for all the questions you do, note down the approach and code on a copy, it comes out to be very beneficial for revision.

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have some good projects in the resume.
Tip 2 : If you have done any internship, then it will be a plus point. If you don't have internships then you should have some good competitive programming ranks.

Interview rounds

01
Round
Hard
Online Coding Interview
Duration90 minutes
Interview date10 Sep 2020
Coding problem4

It was an online round with coding questions, MCQs and a technical writing part

1. Sort an array according to count of set bits

Moderate
25m average time
80% success
0/80
Asked in companies
AdobeAmazonSamsung

You are given an array consisting of N positive integers, and your task is to sort the array in decreasing order of count of set bits in the binary representation of the integers present in the array.

In other words, you have to modify the array such that an integer with more number of set bits should appear before the integer which has lesser number of set bits in its binary representation.

The number of set bits is nothing but the number of 1s present in the binary representation of the integer. For example, the number of set bits in 5(0101) is equal to 2.

Note :

1. If any two numbers have the same count of set bits, then in the sorted array they will appear in the order in which they appear in the original array. For example, let the array be { 2, 4, 3}, in this case, both 2 and 4 have the same number of set bits so the answer will be {3, 2, 4} and not {3, 4, 2}, because in the original array 2 appears before 4.

2. The array may contain duplicate elements.
Try solving now

2. Minimum number of lamps needed to be installed

Easy
10m average time
80% success
0/40
Asked in companies
AdobeAmazonCoinbase

You are given a string 'S' containing dots(.) and asterisks(*) only, where the dot represents free spaces, and the asterisk denotes lamps. A lamp can lighten up its own cell as well as its immediate neighboring cells. You need to determine the minimum number of extra lamps that have to be installed at some free spaces in the string so that the whole string will be illuminated i.e. all the indices of the string can have access to the light of some lamp.

Note :
If a lamp is present at index 'I', then it illuminates index 'I' - 1, 'I' and 'I' + 1.

If a lamp is present at index 0, then it illuminates only 0 and 1.

Given that the length of the string is greater than or equal to 2.

If a lamp is present at the last index, then it illuminates the last and the second last index, given that the length of the string is greater than or equal to 2.

The length of each string is guaranteed to be at least 1.
Try solving now

3. MCQs

Matrices, determinants and polynomial equations MCQs are their
All of them are of engineering mathematics level

4. Technical Article

A situation is given, we have to write a technical article of around 300-500 words (I dont remember exact word limit)

02
Round
Medium
Video Call
Duration60 minutes
Interview date15 Sep 2020
Coding problem4

It was an online telephonic round, I was aksed to share my screen and to open my code editor. I generally code in VS Code, So I shared my VS code screen with the interviewer.
Timing - 4pm
Environment was good
Interviewer was nice person

1. Validate BST

Moderate
25m average time
70% success
0/80
Asked in companies
FacebookAmazonMicrosoft

Given a binary tree with N number of nodes, check if that input tree is Partial BST (Binary Search Tree) or not. If yes, return true, return false otherwise.

A binary search tree (BST) is said to be a Partial BST if it follows the following properties.

• The left subtree of a node contains only nodes with data less than and equal to the node’s data.
• The right subtree of a node contains only nodes with data greater than and equal to the node’s data.
• Both the left and right subtrees must also be partial binary search trees.
Example:

Input:

BST1

Answer:

Level 1: 

All the nodes in the left subtree of 4 (2, 1, 3) are smaller 
than 4, all the nodes in the right subtree of the 4 (5) are 
larger than 4.

Level 2 :

For node 2:
All the nodes in the left subtree of 2 (1) are smaller than 
2, all the nodes in the right subtree of the 2 (3) are larger than 2.
For node 5:
The left and right subtree for node 5 is empty.

Level 3:

For node 1:
The left and right subtree for node 1 are empty.
For node 3:
The left and right subtree for node 3 are empty.
Because all the nodes follow the property of a Partial binary 
search tree, the above tree is a Partial binary search tree.
Problem approach

I first explained that what is a BST.
Then Interviewer gave me an example and asked me to explain it and code it.
I was then started writing the code and explaining each line to the Interviewer that what I am doing.
Finally it was done and explained it further including all the corner cases

Try solving now

2. Reverse Linked List

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

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

I explained from scratch that what will be our algorithm and what all nodes I am gonna make and the purpose of each node.

Bonus Tip: Communicate with interviewer consistently, don't just keep quit all the time

Finally I solved it and interviewer was satisfied with my approach.

Try solving now

3. Writing classes of some data structures like linked list.

4. Infinite numbers are given, each number is either 0 or 1. Sort them.

Problem approach

I gave the solution using 2 pointer approach as it can solve it in linear time complexity.
I explained this question by giving an example and implementing my approach on that example.
interviewer was convinced.

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
Product Intern
2 rounds | 4 problems
Interviewed by Adobe
1803 views
0 comments
0 upvotes
company logo
Product Intern
2 rounds | 3 problems
Interviewed by Adobe
1596 views
0 comments
0 upvotes
company logo
Product Intern
2 rounds | 6 problems
Interviewed by Adobe
752 views
0 comments
0 upvotes
company logo
Product Intern
2 rounds | 7 problems
Interviewed by Adobe
873 views
0 comments
0 upvotes