Category: String coding problem# Question You are building a simplified card game where each player has a hand of cards and the higher-rated hand wins. Each hand contains exactly...Input: String Output: Computed result
codingHardVerified Question#2
2. [AI Enabled Coding] Design Logger
Category: Array coding problem# Question You need to design a logger library for a new application. The design should be able to allow us to easily add future loggers, like a db...Input: Array Output: Printed output
codingMediumVerified Question#3
3. [AI Enabled Coding] Food Delivery Company
Category: String coding problem# Question You are building a driver payment system for a food delivery company. The accounting team needs to track how much money is owed to drivers...Input: String Output: Integer
codingHardVerified Question#4
4. [AI Enabled Coding] Rule Evaluator
Category: String coding problem# Question You need to build a rule evaluation system for a corporate credit card platform. Managers should be able to create rules that enforce...Input: List Output: Computed result
codingHardsliding window#1
1. [OA] Sliding Window — Track active hours for Rippling's employee monitoring system
Rippling aims to keep track of how many employees are active within certain hours to optimize productivity resources. A sliding window approach can facilitate this by keeping real-time data. Problem Statement: Given an array activeHours, where each integer represents the hours when employees are active, calculate the maximum number of employees that can be active during any specific period of time using the sliding window technique.Example 1: Input: activeHours = [1, 2, 2, 3, 3, 4, 5] Output: 5 Explanation: The peak active hours would merge to add up to 5 employees active between hour 1 and hour 5.Example 2: Input: activeHours = [1, 3, 4, 6, 7] Output: 2 Explanation: The sliding window would find two peak hours.Constraints: - 1 <= activeHours.length <= 10^4 - 0 <= activeHours[i] <= 24 - Hours are represented in a 24-hour format.
codingHarddynamic programming#2
2. [OA] Dynamic Programming — Optimize employee tax calculations in Rippling's payroll system
In Rippling's payroll system, calculating employee taxes accurately and efficiently is vital. As the number of employees grows, optimizing this process using effective algorithms becomes essential. Problem Statement: Given an array of unique employees where each employee has a specific tax bracket as an integer, find the most optimal way to calculate the total taxes owed using Dynamic Programming. Return the total amount owed after optimizing the tax determination based on the employee array.Example 1: Input: employees = [1000, 2500, 4500, 6000] Output: 1450 Explanation: The tax calculations for employees will yield a total of 1450 after applying the optimal tax structure.Example 2: Input: employees = [3000, 4000, 5500] Output: 850 Explanation: The system optimizes the calculation to achieve a total of 850 based on the tax rules applied.Constraints: - 1 <= employees.length <= 10^4 - 0 <= employees[i] <= 10^6 - Every employees value is unique.