1. Time & Space Complexity In competitive programming, time and space complexity are critical metrics for evaluating an algorithm's performance, with