deno.land / x / masx200_leetcode_test@10.6.5 / maximum-number-of-groups-entering-a-competition / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
export default function maximumGroups(grades: number[]): number { const t = 2 * grades.length; const g = Math.floor(Math.sqrt(t));
return g * (g + 1) > t ? g - 1 : g;}
masx200_leetcode_test

Version Info

Tagged at
a year ago