Position - Entry Level
The online assessment included 15 MCQs related to Operating Systems and Computer Networking. One problem (also MCQ) was more like a server load problem to calculate approx. time taken to upload and download files. There were two coding problems.

  1. image

Test cases -

  • Input - N=2 rollMax=[1,2,1,2,1,2] Output - 33 (Since {11}, {33}, {55} are not allowed. So 6 * 6 - 3 )

  • Input - N=3 rollMax=[1,1,1,1,1,1] Output - 150 (6 * 5 * 5)
    Constraints - N<= 1e5 and rollMax[i]<=50

  1. image

Test cases -

  • Input - N=3 Instance=1 array=[5,10,75] Output - 2 (Instance value updated to 2)
  • Input - N=13 Instance=4 array=[10,20,12,1,56,5,67,89,34,7,11,72,50] Output - 2 (After 2nd operation Instance will be 1 and system stops for 10 secs. Next position will be 12 (indexing -1) where Instance becomes 2)
    Constraints - N<=10000, Instances<=100000 and array[i]<=100000

P.S. - Any efficient method to solve the first problem

Comments (5)