โ)โ ๐ฉ: Grade DownIndices of ๐ฉ that would sort its major cells in descending order.
a โ 1โฟ2โฟ3 โ a โจ 2 1 0 โฉ (โa) โ a โจ 3 2 1 โฉ
๐จ โ ๐ฉ: Bins DownBinary search for each cell of ๐ฉ in ๐จ, returning the number of major cells in ๐จ greater than or equal to that cell.
๐จ must be sorted in descending order.
7โฟ5โฟ4โฟ3 โ 2 โยท ยท 4 โ 7โฟ5โฟ4โฟ3 โ 2โฟ6 โจ 4 1 โฉ