Razorpay On - Campus Online Round - 17th August 21 - India

Online Assesment Round consists of 3 coding questions and 15 mcq questions. Total Time - 1hr 30 min. Platform - Hackerearth.

  • The MCQ consists of questions directly from CS Fundamentals. Few questions were there directly from the GATE examination. All subjects like DBMS, Network, CPU Scheduling etc was evenly distributed.

  • First Coding Question - 100 marks. Suppose many customers like you have gone to a Laptop shop to buy a laptop. You need to choose the maximum rated Laptop within your budget. You will be given N pair of numbers where pair.first--> Price of a Laptop and pair.second --> Rating of a Laptop. Then You will be given Q queries. Here every query represent the limit of your budget. You cannot exceed your budget. You have to choose the most rated laptop within your Budget. Print the most rated laptop for the certain query.

  • Second Coding Question - 50 marks. You are given N pairs of numbers and a number K. You have to choose 2 players from N players so that the score is maximum within the certain condition. Now Each player has two qualities P and C. Score is defined as Score = P(1) + P(2) + abs( C(1) - C(2) ). Also the condition is abs(C1 - C2) <= K. Return the maximum score that can be achieved.

  • Third Coding Question - 100 Marks - You are given starting time, ending time and Value of any event. You have to choose two Non Overlapping Events such that the Value is maximum. Print the Maximum Value that can be achieved.

The test cases were fairly easy. Most code worked with the Brute Force Solution.

Comments (11)