Print elements in ascending order; GCD of two numbers
Filed under Airtel
The question
Given a set of elements print them in ascending order, giving all approaches from brute force to optimized (swap/cycle sort if values are 1 to n), and find the GCD of two numbers.
No write-up yet. Related questions below have one.
Related Airtel questions
Collected from public candidate posts and coding forums. Updated Nov 2026.