I recently got a chance to interview with Adobe for CS 1 in Noida, India. (Current Work Exp: 3 year). The interview was supposed to be 1 hr but got stretched to 1hr 20 min. After inital 5 minutes of introduction I was asked following questions:
Q1) What is a Singleton Class? Explain and write code for the same. I was able to write code for it, did a dry run as well.
Q2 ) Search in Rotated sorted array: Pretty standard problem https://leetcode.com/problems/search-in-rotated-sorted-array/ . Was able to solve this using binary search gave the time and space complexity as well.
Q3) What is Critical Section in a Code: Gave the definition and had a discussion on a real life example of use cases of critical section.
Q4) How to ensure consistency in Critical Section: Talked about Semaphores and locks
Q5) What is Pagination and explain its use.
Q6) Difference between a Process and a Thread.
Q7) Given two nodes source and destinaition in a tree print path from source to destination https://leetcode.com/problems/step-by-step-directions-from-a-binary-tree-node-to-another/: Gave and coded 2 approaches 1 using graph creation and DFS. The other using stack and dfs without creation of graph. Was able to dry run the code on the example given.
Got Rejection 20 minutes after the interview process ended no reason provided.