HF RL Explorer

Task: Pythonic Way to Check if a List is Sorted

Task: Pythonic Way to Check if a List is Sorted: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that checks whether a list is sorted in ascending (ASC) or descending (DESC) order. This is a common operation when validating ordered data such as timestamps, transaction records…

The task

Create a Python script that checks whether a list is sorted in ascending (ASC) or descending (DESC) order. This is a common operation when validating ordered data such as timestamps, transaction records, or sequential identifiers.

Part of PrimeIntellect/Terminal-Lego-15k.