Add office photos
Adobe logo
Employer?
Claim Account for FREE

Adobe

3.9
based on 1.1k Reviews
Video summary
Filter interviews by
Product Intern
Fresher
Skills
Clear (1)

10+ Adobe Product Intern Interview Questions and Answers

Updated 10 Jan 2025

Q1. Power Calculation Problem Statement

Given a number x and an exponent n, compute xn. Accept x and n as input from the user, and display the result.

Note:

You can assume that 00 = 1.

Input:
Two integers separated...read more
Ans.

Calculate x raised to the power of n, given x and n as input from the user.

  • Accept two integers x and n as input from the user

  • Compute x^n and display the result

  • Handle the case where x=0 and n=0 separately (0^0 = 1)

Add your answer
right arrow

Q2. Sort Array by Set Bit Count

Given an array of positive integers, your task is to sort the array in decreasing order based on the count of set bits in the binary representation of each integer.

If two numbers ha...read more

Ans.

Sort the array in decreasing order based on the count of set bits in the binary representation of each integer.

  • Iterate through the array and calculate the set bit count for each integer using bitwise operations.

  • Use a custom comparator function to sort the array based on the set bit count.

  • Maintain the original order for integers with the same set bit count.

  • Modify the array in-place within the given function.

Add your answer
right arrow
Adobe Product Intern Interview Questions and Answers for Freshers
illustration image

Q3. Validate BST Problem Statement

Given a binary tree with N nodes, determine whether the tree is a Binary Search Tree (BST). If it is a BST, return true; otherwise, return false.

A binary search tree (BST) is a b...read more

Ans.

Validate if a binary tree is a Binary Search Tree (BST) based on given properties.

  • Check if left subtree contains only nodes with data less than current node's data

  • Check if right subtree contains only nodes with data greater than current node's data

  • Recursively check if both left and right subtrees are also BSTs

Add your answer
right arrow

Q4. Maximum Non-Adjacent Subsequence Sum

Given an array of integers, determine the maximum sum of a subsequence without choosing adjacent elements in the original array.

Input:

The first line consists of an integer...read more
Ans.

Find the maximum sum of a subsequence without choosing adjacent elements in the original array.

  • Iterate through the array and keep track of the maximum sum of non-adjacent elements.

  • At each index, compare the sum of including the current element with excluding the current element.

  • Return the maximum sum obtained.

  • Example: For input [3, 2, 7, 10], the maximum sum is 13 by selecting 3 and 10.

  • Example: For input [3, 2, 5], the maximum sum is 8 by selecting 3 and 5.

Add your answer
right arrow
Discover Adobe interview dos and don'ts from real experiences

Q5. Reverse Linked List Problem Statement

Given a singly linked list of integers, return the head of the reversed linked list.

Example:

Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed linked list: 4 -> 3 -> 2...read more
Ans.

Reverse a singly linked list of integers and return the head of the reversed linked list.

  • Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.

  • Use three pointers to keep track of the current, previous, and next nodes while reversing the linked list.

  • Ensure to update the head of the reversed linked list at the end of the process.

  • Example: Input: 1 -> 2 -> 3 -> 4 -> NULL, Output: 4 -> 3 -> 2 -> 1 -> NULL

Add your answer
right arrow

Q6. Minimum Number of Lamps Needed

Given a string S containing dots (.) and asterisks (*), where a dot represents free spaces and an asterisk represents lamps, determine the minimum number of additional lamps neede...read more

Ans.

Determine the minimum number of additional lamps needed to illuminate a string with dots and asterisks.

  • Iterate through the string and check for free spaces that are not already illuminated by existing lamps

  • Place a lamp at each free space that is not already illuminated by an existing lamp

  • Consider edge cases where the first and last positions may need additional lamps

Add your answer
right arrow
Are these interview questions helpful?

Q7. Colourful Knapsack Problem Statement

You are given N stones labeled from 1 to N. The i-th stone has the weight W[i]. There are M colors labeled by integers from 1 to M. The i-th stone has the color C[i] which i...read more

Ans.

The task is to fill a Knapsack with stones of different colors and weights, minimizing unused capacity.

  • Given N stones with weights W and colors C, choose M stones (one of each color) to fill Knapsack with total weight not exceeding X

  • Minimize unused capacity of Knapsack by choosing stones wisely

  • If no way to fill Knapsack, output -1

  • Example: N=5, M=3, X=10, W=[1, 3, 3, 5, 5], C=[1, 2, 3, 1, 2] -> Output: 1

Add your answer
right arrow

Q8. Linked List Merge Point Problem

You are given two singly linked lists and a third linked list, such that the two lists merge at some node of the third linked list. Determine the data value at the node where thi...read more

Ans.

Given two linked lists that merge at some point, find the data value at the merging node.

  • Traverse both lists to find their lengths and the difference in lengths

  • Move the pointer of the longer list by the difference in lengths

  • Traverse both lists simultaneously until the nodes match to find the merging node

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. 1>linked list node contain a string field and next.find if by concatenating all string fields the string formed is palindrome or not? 2-> merge to sorted array in which one arra is large enough to accomodate el...

read more
Ans.

The first question is about checking if a string formed by concatenating all string fields in a linked list is a palindrome or not.

  • Traverse the linked list and concatenate all string fields

  • Check if the concatenated string is a palindrome by comparing characters from both ends

  • Consider edge cases like empty linked list or single node with an empty string field

Add your answer
right arrow

Q10. Puzzle question -> 12 people on island with a seesaw. 11 of them have identical weight, one has higher or lower. How can you find out which one? You can only use the seesaw 3 times

Ans.

Use the seesaw 3 times to find the person with different weight among 12 people on an island.

  • Divide the 12 people into 3 groups of 4.

  • Compare 2 groups on the seesaw, then narrow down the group with the different person.

  • Take the 4 people from the identified group and compare 2 of them on the seesaw to find the person with different weight.

Add your answer
right arrow
Q11. Can you explain the Egg Dropping Puzzle and how it was discussed?
Ans.

The Egg Dropping Puzzle is a classic problem in mathematics and computer science that involves finding the highest floor from which an egg can be dropped without breaking.

  • The puzzle involves finding the minimum number of attempts needed to determine the highest safe floor using only two eggs.

  • Strategies for solving the puzzle include binary search, dynamic programming, and optimal stopping theory.

  • The puzzle was discussed in the context of algorithm design and optimization duri...read more

Add your answer
right arrow

Q12. 1. Binary tree traversal 2. Multiply 2 big numbers represented in the form of string. 3. Detect the k-th node from the back of a linked list.

Ans.

Questions on binary tree traversal, multiplying big numbers represented as strings, and detecting k-th node from the back of a linked list.

  • Binary tree traversal can be done in three ways: in-order, pre-order, and post-order.

  • To multiply two big numbers represented as strings, you can use the grade-school algorithm or Karatsuba algorithm.

  • To detect the k-th node from the back of a linked list, you can use two pointers approach or find the length of the list first.

Add your answer
right arrow

Q13. Difference between process and thread

Ans.

A process is an instance of a program, while a thread is a unit of execution within a process.

  • A process is an independent entity that runs in its own memory space, while threads share the same memory space within a process.

  • Processes have their own resources, such as file handles and memory, while threads share these resources.

  • Processes are heavyweight and have higher overhead, while threads are lightweight and have lower overhead.

  • Processes provide better isolation and securit...read more

Add your answer
right arrow

Q14. Explain C++ memory management & pointers

Ans.

C++ memory management involves allocating and deallocating memory for variables, while pointers store memory addresses.

  • Pointers are variables that store memory addresses.

  • They are used to access and manipulate data stored in memory.

  • Example: int* ptr = new int; *ptr = 10; delete ptr;

Add your answer
right arrow

Q15. Modified unbounded knapsack.

Ans.

Modified unbounded knapsack problem involves maximizing the value of items with unlimited quantities and weight constraints.

  • Consider items with values and weights, along with a weight constraint

  • Dynamic programming can be used to solve this problem efficiently

  • Examples: Given items with values [60, 100, 120] and weights [10, 20, 30], and a weight constraint of 50, maximize the value

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Adobe Product Intern

based on 5 interviews
1 Interview rounds
Coding Test Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Recently Viewed
LIST OF COMPANIES
Credit Bajaar
Overview
PHOTOS
InsuranceDekho
3 office photos
LIST OF COMPANIES
Discover companies
Find best workplace
INTERVIEWS
Adobe
No Interviews
INTERVIEWS
Shapoorji Pallonji Group
200 top interview questions
SALARIES
VMware Software
REVIEWS
NextComm Corporation
No Reviews
SALARIES
Apollo Hospitals
REVIEWS
NextComm Corporation
No Reviews
SALARIES
Apollo Hospitals
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter