Panda Guru LogoPanda
Guru

Zolostays SDE Intern Oncampus OA

Round 1: Online Assessment

Questions: Section A: MCQ's on CS fundamentals

  1. Overloading vs overriding
  2. Syntax questions on Go and Python
  3. Find output of given text blob of C++ code

Programming Questions:

  1. Trapping Rainwater
  2. Find simple interest (given integer value of principal, rate of interest and time, return float for interest gained)
  3. Rotate array in clockwise direction. Given an array of size n, shift it by k positions in the clockwise direction. Simple one-liner in Python, using array slicing.
  4. Range Sum: Return number of range sums that lie in [lower, upper] inclusive.
    • Example: arr = [-2, 5, -1], lower = -2, upper = 2
    • Expected output: 3
    • Test Case 1: arr = [1, -3, 5, 2, 5, 2, -5], lower = -2, upper = 6
      • Expected output: 8
    • Test Case 2: arr = [1, -3, 5, -2, 2, 5, -1, 10], lower = 5, upper = 9
      • Expected output: 12
Candidate's Approach

The candidate was able to submit three out of the four programming questions with 40 minutes left on the clock. They found the Range Sum question challenging and did not fully understand it.

Interviewer's Feedback

No feedback provided.