New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Roblox
Coding Question
AI Insights
Quick Summary
Find the lowest integer score cutoff where the fraction of losing games among all games scoring at or above it meets a target threshold.
Increasing the cutoff excludes lower-scoring games, dynamically altering the overall loss ratio.
Return -1 if no valid cutoff exists across the entire dataset.
What This Tests
Incremental state tracking and ratio calculation
Data aggregation using hash maps
Sorting and sequential boundary evaluation
Greedy evaluation of threshold conditions
Floating-point comparison and precision handling
Common Patterns
Greedy
Hashing
Sorting
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected