KLA Interview Experience | Software Engineer | Chennai
Anonymous User
3841

Round - 1 (Hackerrank Test)
10, March 2021

  1. Aggressive Cows

  2. Given N(total nodes) and two arrays consisting the edges, for each acyclic graph, add nodes in graph, calculate the square root and add all square roots.
    Ex: [1,2,3] [4,7,8] N=10

Round - 2 (Technical Interview in Hackerrank)
20 March, 2021

  1. Given an array and k operations, in each operation replace a number with half of it. After k operations, return the sum of array that is minimum
    Ex: [1,2,4] k=3
    k=1 -> 1 2 2
    k=2 -> 1 2 1
    k=3 -> 1 1 1 -> Sum=3

  2. Given a source and distance, in a 2d array containing blocks which breaks if we reach adjacent to it twice, return true if there exists a path

  3. The keyboard have only 3 keys, K,L,A and performs 3 operations ctrl-A(select all), crtl-C(copy), ctrl-V(paste). Return the maximum number of KLA words that can be formed for a given N.
    Ex: N=6
    Words = 2 -> KLA ctrl-A ctrl-C ctrl-V
    N=8
    Words = 4-> KLA ctrl-A ctrl-C ctrl-V ctrl-V ctrl-V

Round - 3 (Technical Interview in Hackerrank)
20 March, 2021

  1. Given an array with min length of 8, choose 2 groups of 2 numbers such that in each group, the two numbers must not be adjacent. Multiply the numbers in both groups and subtract one from other. Maximize this result
    Ex: 2,1,3,4,8,6,7,9
    2 groups -> 1,4 & 6,9 -> Diff = 54-4 = 50

  2. Given a 2d sorted array, sorted in rows and sorted in columns, return a 1d array that is sorted

  3. Find the absolute sum b/w consecutive elements in array and add it. Replace all occurrences of given number in the array and repeat the procedure.

Round - 4 (LLD)
23 March, 2021

Design a code editor that has the following features
-Supports multiple languages
-Keywords of the language should be colored

Round - 5 (HR)
24 March, 2021

Tell me about yourself
Experience in previous company
etc

Comments (8)