Adobe Interview Experience | Set 45 (For 2.5Years Experienced)
Adobe visited Hyderabad for a recruitment drive. Interviews were held in Novotel convention center.
F2f 1(1.5 hours)
The interviewer started with the discussion about current company and project. Then he asked me some basic DS and algo questions:
F2f 2(1.5 hours)
- Given an array, find all sets of 3 numbers whose sum equals to 0
- He asked me to write merge sort code and then quick sort
- Shuffle a sorted array
- Write indexOf function for substring search in a given string
- Which sorting algorithm does .sort() method use in java?
- Print all leaf nodes for a given BST
- Given a stream of numbers which contains n numbers, each number is positioned at max k positions away from its actual position. Sort the array in the most optimized way.
- Design a data structure which would insert, delete, search and random in O(1)
- Given a number, find immediate larger number using same digits
- In Java, should you store a password in a String variable? If not, then why?
- You have 50 red balls and 50 blue balls, you have to place these balls in two containers in such a way that probability of a person picking up a red ball from any container is maximum.
- Some questions about GC, classloader, etc
There were few other questions related to DS algo asked in this round for which he asked me only the logic and did not ask me to code, I don’t remember all.
F2f 3(1.5 hours)
- You are given an API which returns text for a given pdf. Now design a service which would use the API to report managers/administrators if given bill as a PDF has same bill amount as been reported by the employee. In the report, you have to return name, date and total amount in the bill.
– Firstly he asked me to write code to extract name, date and bill amount from the pdf assuming that all bills follow same format, i.e,
(Name:<Name> Date:<Date>…#@#$@#$@#……. Total:<Total>)
– Then he asked me how would you report it to multiple managers/admins. He wanted to know which design pattern would I use.
- There is an app like Acrobat Reader for android. It maintains a list of all available pdf files in file system. How would you update the list when a new file is added and location of this file is unknown. You are given root directory and for each directory, you can check the timestamp when it was last updated.
- Given an array of size n and a number k<=n, find local maxima for each window of size k.
- 10 prisoners and hats puzzle
- Max coin sum game – There are n coins with some value placed in a straight line, you can pick any one coin from any one end of the line. You are playing this game with your friend, now you have to maximize your sum assuming that other player also plays it optimally. Assume you are first to pick up the coin.
The interview was held in a large conference hall with the table & chair been placed exactly in the center of the hall. He asked me the following questions:
- Introduction, college, company and project details. Why do you want to switch your company?
- Then he asked me what is my strength in CS? I didn’t know what to answer at that moment and then out of nowhere I said ‘Problem-solving’. I was regretting a second later and thinking that I should have said ‘Data Structures’. Then he gave me a problem-solving question which I was not able to solve optimally. I told him brute force approach.
- There are some professors, some courses, and some students.
Each professor can teach only a single course.
Each course has a fixed duration(Eg. 10 weeks).
For each professor, you are given time availability schedule(assume week wise).
Each student has a list of courses he wants to learn.
There can be only 1:1 classes, i.e., 1 professor can teach only a single student.
A student can attend only one course at a time.
A professor has to finish teaching a course in a one go.
Your aim is to prepare a schedule so that all courses are taught in the least time. I will appreciate if readers can answer their approaches in comments.
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!
Share your thoughts in the comments
Please Login to comment...