Want to solve this problem? Login now to get access to solve the problems

Problem

Submissions

Solution

Leaderboard

Coming soon

0

Difficulty: EASY

Avg. time to solve

15 min

Success Rate

85%

Problem Statement

Suggest Edit

```
1. Branching includes if-else statements, the ternary operator, or switch-case statements. Therefore you should not use any of the above approaches to solving the problem.
2. You do not need to print anything; it has already been taken care of. Just implement the function.
```

```
The first line contains a single integer ‘T’ representing the number of test cases.
The only line of each test case contains two space-separated integers ‘a’ and ‘b’ representing two integers whose minimum and the maximum you need to return.
```

```
For each test case return the minimum and maximum of two numbers.
```

```
1 <= T <= 1000
1 <= ‘a’ <= 10^9
1 <= ‘b’ <= 10^9
Where ‘T’ is the number of test cases. ‘a’ and ‘b’ are the numbers whose minimum and the maximum you have to compute.
Time Limit: 1sec
```

```
4
1 1
2 1
17 13
11 24
```

```
1 1
1 2
13 17
11 24
```

```
Test case 1:
1 is the minimum of the two numbers.1 is the maximum of the two numbers. Therefore the answer is 1 1.
Test case 2:
1 is the minimum of the two numbers.2 is the maximum of the two numbers. Therefore the answer is 1 2.
Test case 3:
13 is the minimum of the two numbers.17 is the maximum of the two numbers. Therefore the answer is 13 17.
Test case 4:
11 is the minimum of the two numbers.24 is the maximum of the two numbers. Therefore the answer is 11 24.
```

```
2
15 20
4 3
```

```
15 20
3 4
```

Want to solve this problem? Login now to get access to solve the problems