Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1990. Count the Number of Experiments
Given a list of experiments each described by a numeric value and a condition on their combined metric (e.g., sum, product, or probability threshold), count how many non‑empty subsets/contiguous sequences/ordered selections satisfy that condition. Expect to use sorting + two‑pointers or sliding window, prefix sums/DP and modular combinatorics to handle large N and return the answer modulo a large prime.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.