Phonepe |SDE 2| Bengluru | July 24 2023 [Reject]

Anonymous User
1781
Jul 24, 2023
Jul 25, 2023

Status: 3 Year Experience
Position: SDE1 at Startup
Location: Banglore
Date: July 24, 2023

1st Machine Coding (2 hour):
Design Zoomcar type system .

2nd PSDS (1 hour):
Given an array, determine the median of a new array generated from the given input array, which consists of the sums of each pair of elements in the original array.

Eg -> Given [3,4, 5,7,9] output: 11.5
Explanation:
pair sum array -> [ 3 + 4 , 3 + 5 , 3 + 7 , 3 + 9 , 4 + 5 , 4 + 7 , 4 + 9 , 5 + 7 , 5 + 9 , 7 + 9] = [7 , 8 , 10 , 12 , 9 , 11, 13, 12, 14, 16]
sort(pair sum array) = [7 , 8 , 9 , 10 , 11, 12, 12, 13, 14, 16]
median = (11 + 12)/2 = 11.5

Result: REJECTED

Comments (9)