HF RL Explorer

Task: Filtering a List Based on a List of Booleans

Task: Filtering a List Based on a List of Booleans: a task in Terminal-Lego-15k (Harbor dataset). You need to create a Python solution that filters elements from a list based on corresponding boolean values in another list. Given a list of values and a list of boolean flags of the same length…

The task

You need to create a Python solution that filters elements from a list based on corresponding boolean values in another list. Given a list of values and a list of boolean flags of the same length, return only the elements where the corresponding boolean is `True`.

Part of PrimeIntellect/Terminal-Lego-15k.