Search
⌘K

Leetcode 2844. Minimum Operations to Make a Special Number

Given a string representing a nonnegative integer, remove the fewest digits so the resulting number is divisible by 25. Observe only the suffixes "00", "25", "50", or "75" matter — find the minimal deletions needed to make any one of those two-digit patterns appear as the final digits (preserving the original order).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.