Google | WSE/GTech L3 | Technical Interview - Round 1
Anonymous User
462

Q1: Maximize (Min + Max) Subarray

  • Problem: Given an array of integers, find a contiguous subarray where the sum of its minimum element and maximum element is maximized.

Q2: Chat System Logger (System Design/Coding)

  • Problem: Implement a Logger class with two main functions:
    1. logMessage(sender, receiver, message, timestamp): Records chat activity.
    2. getMostActiveUser(): Returns the user who sent the most messages.

Follow-up: Top K Active Users

  • Requirement: Modify the system to return the top most active members.
Comments (3)