Skip to content
← Back to the archive

14 September 2026

Tidy Tens

Easy Lists Numbers

Keep the batch sizes that are exact multiples of ten.

You are given a list of whole-number batch sizes from a warehouse. Look at each size and keep it when it can be divided into groups of ten with nothing left over. Return a new list containing the kept sizes in their original order. If no sizes meet the rule, return an empty list.

Constraints

  • sizes contains from 0 to 1,000 whole numbers
  • Each size is from 0 to 1,000,000
  • Return values in their original order

Function signature

def tidy_tens(sizes):

Sign in to solve this bracket

Reading the problem is free for everyone. Opening the editor and solving it requires an account with Open Bracket+.