2500 - 2599
Solutions categorised by Problem IDs
2501 - Longest Square Streak in an ArrayFind the longest square streak by following chains in which each next value is the square of the previous one.2520 - Count the Digits That Divide a NumberCount the digits that divide the original number evenly by extracting and testing each digit.2521 - Distinct Prime Factors of Product of ArrayCount the distinct prime factors of an array's product by factoring its elements and collecting unique primes.2523 - Closest Prime Numbers in RangeFind the closest pair of primes in an inclusive range by sieving primes and comparing adjacent gaps.2529 - Maximum Count of Positive Integer and Negative IntegerCount positive and negative entries separately, skip zeroes, and return the larger count.2530 - Maximal Score After Applying K OperationsMaximize the score over k operations by repeatedly selecting the largest available element with a priority queue.2531 - Make Number of Distinct Characters EqualDecide whether swapping one letter between two words can equalize their distinct-letter counts by tracking character frequencies.2535 - Difference Between Element Sum and Digit Sum of an ArrayFind the absolute difference between the array sum and the sum of all its individual decimal digits.2571 - Minimum Operations to Reduce an Integer to 0Minimize additions or subtractions of powers of two needed to reach zero by comparing choices with dynamic programming.