2600 - 2699
Solutions categorised by Problem IDs
2610 - Convert an Array Into a 2D Array With ConditionsArrange values into the fewest rows with no duplicates per row by tracking how many times each value occurs.2614 - Prime In DiagonalFind the largest prime on either diagonal of a square matrix by checking the diagonal entries for primality.2615 - Sum of DistancesCompute the sum of index distances to equal values by grouping their positions and reusing prefix sums.2616 - Minimize the Maximum Difference of PairsMinimize the largest difference among p disjoint pairs by binary searching the difference bound and testing sorted neighbors.2639 - Find the Width of Columns of a GridFind each grid column's required width by measuring its longest printed integer, including the sign for negative values.2644 - Find the Maximum Divisibility ScoreFind the divisor that divides the most array values, breaking ties by choosing the smallest divisor.2678 - Number of Senior CitizensCount passengers older than sixty by extracting the age digits from each fixed-format passenger record.2679 - Sum in a MatrixCompute the matrix game score by sorting each row and summing the largest value at each removal round.2680 - Maximum ORMaximize the bitwise OR after doublings by combining each shifted candidate with prefix and suffix OR values.2681 - Power of HeroesSum the power of all hero groups by sorting strengths and aggregating the contributions of subset minima and maxima.