- Utah
-
10:55
(UTC -07:00) - carstonhenderson.me
- in/carstonhenderson
Pinned Loading
-
-
1887. Reduction Operations to Make t...
1887. Reduction Operations to Make the Array Elements Equal 1# 1887. Reduction Operations to Make the Array Elements Equal
23*Given an integer array `nums`, your goal is to make all elements in `nums` equal. To complete one operation, follow these steps:*
451. Find the largest value in `nums`. Let its index be `i` (0-indexed) and its value be `largest`. If there are multiple elements with the largest value, pick the smallest `i`.
-
Max additional diners (Meta)
Max additional diners (Meta) 1A cafeteria table consists of a row of $N$ seats, numbered from 1 to $N$ from left to right. Social distancing guidelines require that every diner be seated such that $K$ seats to their left and $K$ seats to their right (or all the remaining seats to that side if there are fewer than $K$) remain empty.
23There are currently $M$ diners seated at the table, the $i$-th of whom is in seat
4$S_{i}$. No two diners are sitting in the same seat, and the social distancing guidelines are satisfied.
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.