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

SDE - 1

KLA
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
It was an off-campus opportunity, and I received a referral. Although I did not meet the minimum qualifications, my strong resume led them to call me for an interview. Currently in my 4th year, I completed an internship at Google. Additionally, I served as the head of the competitive coding department in one of the clubs at my college and was also a Microsoft Engage mentee.
Application story
I was referred to the position by someone I know who works at the company. Despite not meeting the minimum qualifications, I had a strong resume, so they called me for an interview.
Why selected/rejected for the role?
I was not selected for this role, and I never received a call back for an HR interview. Unfortunately, I did not receive a proper response afterwards.
Preparation
Duration: 6 months
Topics: Data Structures, Database Management Systems, Object Oriented Programming, Networking, Algorithms
Tip
Tip

Tip 1: Problem-solving skills are crucial. 

Tip 2: Craft a high-quality resume that is ATS-friendly. 

Tip 3: Build a solid foundation in core concepts.

Application process
Where: Referral
Eligibility: M.tech graduate or B.tech graduate with 2 years of work experience
Resume Tip
Resume tip

Tip 1: Keep it simple and to one page. 

Tip 2: Ensure that the resume is ATS-friendly.

Interview rounds

01
Round
Easy
Face to Face
Duration45 minutes
Interview date5 Feb 2024
Coding problem2

It was a coding round, Presented with a question, I had to explain my login and code the logic as well.

1. Valid Parentheses

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

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Every close bracket has a corresponding open bracket of the same type.

Problem approach

Initialize an empty stack.

Traverse the input string character by character.

If the current character is an opening bracket (i.e., '(', '{', '['), push it onto the stack.

If the current character is a closing bracket (i.e., ')', '}', ']'), check if the stack is empty. If it is empty, return false, because the closing bracket does not have a corresponding opening bracket. Otherwise, pop the top element from the stack and check if it matches the current closing bracket. If it does not match, return false because the brackets are not valid.

After traversing the entire input string, if the stack is empty, return true, because all opening brackets have been matched with their corresponding closing brackets. Otherwise, return false, because some opening brackets have not been matched with their corresponding closing brackets.

Try solving now

2. Rotate matrix by 90 degrees

Easy
15m average time
85% success
0/40
Asked in companies
AdobeMicrosoftMcKinsey & Company

You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in place, which means you have to modify the input 2D matrix directly. DO NOT allocate another 2D matrix and do the rotation.

Problem approach

we transpose the matrix, it will make every row element into a column element.
Then we simply reverse every row.
Time complexity: O(n^2).

Try solving now
02
Round
Easy
Face to Face
Duration45 Minutes
Interview date5 Feb 2024
Coding problem2

It was a Logical Thinking round, Presented with a question, I had to explain my login and give the Pseudocode as well.

1. Minimum Cost to Connect All Points

Moderate
30m average time
70% success
0/80
Asked in companies
MicrosoftOracleAmazon

You are given an array of points representing integer coordinates of some points on a 2D plane, where points[i] = [xi, yi]. The cost of connecting two points [xi, yi] and [xj, yj] is the manhattan distance between them: |xi - xj| + |yi - yj|, where |val| denotes the absolute value of val.Return the minimum cost to make all points connected. All points are connected if there is exactly one simple path between any two points.

Problem approach

Data Structures:
Utilizes a Point class to represent 2D coordinates.
Defines a Node class to represent connections between points along with their distances.
Uses an ArrayList to store the points and a PriorityQueue for efficient connection retrieval.

Initialization:
Converts the input 2D array of points into an ArrayList of Point objects.
Initializes a HashSet to keep track of visited points.
Sets up a PriorityQueue (min-heap) to store connections based on distance.

Starting Point:
Selects the first point as the initial point of connection.
Adds the starting point to the visited set.

Connection Setup:
Calculates and adds connections from the starting point to all other points in the PriorityQueue.

Main Loop:
Iterates until all points are connected or the PriorityQueue is empty.
Picks the minimum distance connection from the PriorityQueue.
Check if the second point in the connection is already visited; if yes, skip it.

Update Cost and Visited Set:
Adds the second point to the visited set.
Updates the minimum cost with the distance of the current connection.

Expand Connections:
Adds new connections from the newly connected point to all unvisited points in the PriorityQueue.

Result:
Returns the accumulated minimum cost to connect all points.

Try solving now

2. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
RazorpayMorgan StanleyUber

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after rain.

Problem approach

Instead of computing the left and right parts separately, we may think of some way to do it in one iteration.

Suppose we start from both the left and right end by maintaining two pointers left and right. If the smaller tower is at the left end, water trapped would be dependent on the tower's height in the direction from left to right. Similarly, if the tower at the right end is smaller, the water trapped would be dependent on the tower's height in the direction from right to left. So we first calculate water trapped on the smaller tower among height[left] and height[right] and move the pointer associated with the smaller tower.

The loop will run till the left pointer doesn't cross the right pointer. In terms of an analogy, we can think of height[left] and height[right] as a wall of a partial container where we fix the higher end and flow water from the lower end.

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
4657 views
0 comments
0 upvotes
Associate Professional
2 rounds | 3 problems
Interviewed by KLA
1071 views
0 comments
0 upvotes
SDE - 2
2 rounds | 3 problems
Interviewed by KLA
706 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes