Skip to content
← Back to the archive

15 September 2026

Blue Supply Tags

Easy Lists Strings

Keep the supply tags that start with the letter B.

You are given a list of uppercase supply tags. Look at each tag and keep it when its first letter is B. Return the kept tags in their original order. If no tag starts with B, return an empty list.

Constraints

  • tags contains from 0 to 1,000 uppercase ASCII strings
  • Each tag has from 1 to 20 letters
  • Return tags in their original order

Function signature

def blue_supply_tags(tags):

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+.